-
Notifications
You must be signed in to change notification settings - Fork 10.5k
build: introduce and use swift_target_link_search_directories
#6354
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
Conversation
Introduce a swift_target_link_search_directories which allows you to append a search path to the linker. This interface also allows a tweak to make the library search directory addition more portable across compilers (e.g. cl vs clang).
@swift-ci please test |
Build failed |
@swift-ci please smoke test OS X platform |
@swift-ci please test OS X platform |
Good change, thanks |
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.
One comment below, otherwise LGTM.
@@ -294,7 +294,7 @@ endfunction() | |||
function(_add_variant_link_flags) | |||
set(oneValueArgs SDK ARCH BUILD_TYPE ENABLE_ASSERTIONS ANALYZE_CODE_COVERAGE | |||
DEPLOYMENT_VERSION_OSX DEPLOYMENT_VERSION_IOS DEPLOYMENT_VERSION_TVOS DEPLOYMENT_VERSION_WATCHOS | |||
RESULT_VAR_NAME ENABLE_LTO LTO_OBJECT_NAME) | |||
RESULT_VAR_NAME ENABLE_LTO LTO_OBJECT_NAME LIBRARY_SEARCH_DIRECTORIES) |
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 think it would be better if this were a multi-value argument rather than a single value argument.
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.
@llvm-beanz thats an out parameter, which is the variable that gets the list. Im not sure what you are suggesting here.
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 misunderstood something here. It actually looks to me like you're using it as both an in and out parameter. That is confusing and really gross, but that is how the other options work, so I guess it is okay.
This is actually in line with other conventions in the file. Gross, but consistent.
Introduce a swift_target_link_search_directories which allows you to
append a search path to the linker. This interface also allows a tweak
to make the library search directory addition more portable across
compilers (e.g. cl vs clang).
Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.
Resolves SR-NNNN.