-
Notifications
You must be signed in to change notification settings - Fork 833
Fix CMake checks for Linux #8210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -222,7 +222,7 @@ if(NOT MSVC AND NOT EMSCRIPTEN) | |
| endif() | ||
|
|
||
| # The version of clang currently on our Mac bots doesn't seem to support this flag. | ||
| if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND (LINUX OR WINDOWS)) | ||
| if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND NOT APPLE) | ||
| add_link_flag("-fuse-ld=lld") | ||
| endif() | ||
|
|
||
|
|
@@ -473,7 +473,7 @@ if(BUILD_STATIC_LIB) | |
| else() | ||
| message(STATUS "Building libbinaryen as shared library.") | ||
| add_library(binaryen SHARED) | ||
| if(LINUX) | ||
| if(CMAKE_SYSTEM_NAME STREQUAL "Linux") | ||
| # Disable interposition and resolve Binaryen symbols locally. | ||
| add_link_flag("-Bsymbolic") | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do these two flags were just never being add on linux?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This flag was never being added. It was sort of a drive-by addition to #7618. |
||
| endif() | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do
APPLEis a global butLINUXis not? I guessLINUXmust have been at some point in the past?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if it was in the past, or if some projects define it, or if I just hallucinated it.