-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Haiku: Fix native component build #126701
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
base: main
Are you sure you want to change the base?
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 | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -350,8 +350,12 @@ elseif(CLR_CMAKE_HOST_APPLE) | |||||||||||||||||||||||
| endif() | ||||||||||||||||||||||||
| endif() | ||||||||||||||||||||||||
| elseif(CLR_CMAKE_HOST_HAIKU) | ||||||||||||||||||||||||
| # Workaround until https://gitlab.kitware.com/cmake/cmake/-/merge_requests/11915 gets merged. | ||||||||||||||||||||||||
| # Haiku uses the GNU toolchain so this should work. | ||||||||||||||||||||||||
| set(CMAKE_LINK_GROUP_USING_RESCAN "LINKER:--start-group" "LINKER:--end-group") | ||||||||||||||||||||||||
| set(CMAKE_LINK_GROUP_USING_RESCAN_SUPPORTED TRUE) | ||||||||||||||||||||||||
| add_compile_options($<$<COMPILE_LANGUAGE:ASM>:-Wa,--noexecstack>) | ||||||||||||||||||||||||
| add_linker_flag("-Wl,--no-undefined") | ||||||||||||||||||||||||
| add_linker_flag("-Wl,--build-id=sha1") | ||||||||||||||||||||||||
|
||||||||||||||||||||||||
| add_linker_flag("-Wl,--build-id=sha1") | |
| add_linker_flag("-Wl,--build-id=sha1") | |
| check_linker_flag(C "-Wl,--no-undefined" LINKER_SUPPORTS_NO_UNDEFINED_FLAG) | |
| if(LINKER_SUPPORTS_NO_UNDEFINED_FLAG) | |
| add_linker_flag("-Wl,--no-undefined") | |
| else() | |
| check_linker_flag(C "-Wl,-z,defs" LINKER_SUPPORTS_Z_DEFS_FLAG) | |
| if(LINKER_SUPPORTS_Z_DEFS_FLAG) | |
| add_linker_flag("-Wl,-z,defs") | |
| endif() | |
| endif() |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -56,13 +56,12 @@ else() # WASI | |
| ) | ||
| endif() | ||
|
|
||
| if (CLR_CMAKE_TARGET_APPLE OR CLR_CMAKE_TARGET_ANDROID OR CLR_CMAKE_TARGET_BROWSER OR CLR_CMAKE_TARGET_WASI OR CLR_CMAKE_TARGET_OPENBSD) | ||
| if (HAVE_PTHREAD_MUTEXATTR_SETROBUST AND HAVE_PTHREAD_MUTEX_CONSISTENT) | ||
| list (APPEND NATIVE_SOURCES | ||
| pal_crossprocessmutex_unsupported.c) | ||
| pal_crossprocessmutex.c) | ||
| else() | ||
| list (APPEND NATIVE_SOURCES | ||
| pal_crossprocessmutex.c | ||
| ) | ||
| pal_crossprocessmutex_unsupported.c) | ||
| endif() | ||
|
Comment on lines
+59
to
65
|
||
|
|
||
| if (CLR_CMAKE_TARGET_APPLE) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
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.
cmake#11919 has just been merged and will be released for 4.4.0.
What should I do about this?
Should I:
if (CMAKE_VERSION VERSION_LESS 4.4), or