You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselfIRGenLLVM IR generation
When parallel compilation is enabled. The compiler always generates symbols for `main` in the first .o file. Symbols for the rest of the source files are shuffled into the remaining .o files.
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselfIRGenLLVM IR generation
Attachment: Download
Environment
On Swift master.
Additional Detail from JIRA
md5: 058aa7e14ea1a9bdf13b61536bce5e23
Issue Description:
When parallel compilation is enabled. The compiler always generates symbols for `main` in the first .o file. Symbols for the rest of the source files are shuffled into the remaining .o files.
$ swiftc -incremental -whole-module-optimization -num-threads 3 a.swift main.swift b.swift
$ swift -frontend -c a.swift main.swift b.swift -num-threads 3 -o a.o -o main.o -o b.o
nm -nm a.o
(_TEXT,_text) external _main
nm -nm main.o
(_TEXT,_text) private external _$S1a4fooASiyF
The text was updated successfully, but these errors were encountered: