-
Notifications
You must be signed in to change notification settings - Fork 138
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
Add OpenBSD as a recognized OS #521
base: master
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 |
---|---|---|
|
@@ -113,6 +113,11 @@ find_library( | |
HINTS ${CMAKE_BINARY_DIR}/lib) | ||
target_link_libraries(flangrti_shared ${LIBPGMATH}) | ||
|
||
# BSDs need libexecinfo | ||
if( ${TARGET_OS} STREQUAL "OpenBSD" ) | ||
target_link_libraries(flangrti_shared ${FLANG_LIBEXECINFO}) | ||
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. Will flang-driver need to add libexecinfo to the linker command line? 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. No; I do a static link of libexecinfo into flangrti.so |
||
endif() | ||
|
||
if( ${TARGET_ARCHITECTURE} STREQUAL "aarch64" ) | ||
target_compile_definitions(flangrti_static PRIVATE TARGET_LINUX_ARM) | ||
target_compile_definitions(flangrti_shared PRIVATE TARGET_LINUX_ARM) | ||
|
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.
When I was playing around with the port, I did the same thing -- set TARGET_ARCHITECTURE to x86_64. I'm wondering if we shouldn't factor our TARGET_ARCHITECTURE to be something like FLANG_TARGET_ARCHITECTURE. The downside is that it might introduce confusion and bugs because people know about TARGET_ARCHITECTURE. This isn't a call to action; just a discussion point that probably better raised in the mailing list :)