forked from ldc-developers/ldc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix LTO on newer macOS. (ldc-developers#4548)
The trouble was that the libLTO-ldc.dylib was not used by ld64, even though it is explicitly passed using -lto_library. Somehow the library renaming (adding "-ldc" postfix) is not working properly. I did not figure out how to fix it (the usual install-name-tool and resigning did not work), the only fix that worked is to not rename it at all. This bug went unnoticed because at -O0, there is no LTO object file output at all; hence the -O3 addition to the thinlto testcase.
- Loading branch information
1 parent
dc393dc
commit 2c2c550
Showing
3 changed files
with
23 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters