-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Improve usability of -l flag #38750
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
Merged
varungandhi-apple
merged 9 commits into
swiftlang:main
from
RAJAGOPALAN-GANGADHARAN:sr_14122
Aug 27, 2021
Merged
Improve usability of -l flag #38750
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
4f5cb6a
-l flag accepts space and emits without space to llvm frontend
RAJAGOPALAN-GANGADHARAN c2ce6c5
Add Tests to check if adding space doesn't break invocation
RAJAGOPALAN-GANGADHARAN 82665cc
Add space test case to repl tests
RAJAGOPALAN-GANGADHARAN fd2fcbb
[WIP] Address review comments - Fix memory leak
RAJAGOPALAN-GANGADHARAN 90637aa
Take care of OPT_linker_option_Group to produce desired behaviour
RAJAGOPALAN-GANGADHARAN 8946792
Add seperate test since linker test is disabled
RAJAGOPALAN-GANGADHARAN 48de17d
Address review comments for reusable function
RAJAGOPALAN-GANGADHARAN cd7a30b
Address Test review comments
RAJAGOPALAN-GANGADHARAN 855eeaf
Fix ci test failure
RAJAGOPALAN-GANGADHARAN File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// RUN: %swiftc_driver -sdk "" -driver-print-jobs -target x86_64-unknown-linux-gnu -Ffoo -Fsystem car -F cdr -framework bar -Lbaz -lboo -Xlinker -undefined %s 2>&1 > %t.linux.txt | ||
// RUN: %FileCheck -check-prefix LINUX-lib-flag-space %s < %t.linux.txt | ||
|
||
// LINUX-lib-flag-space: swift | ||
// LINUX-lib-flag-space: -o [[OBJECTFILE:.*]] | ||
|
||
// LINUX-lib-flag-space: clang{{(\.exe)?"? }} | ||
// LINUX-lib-flag-space-DAG: -pie | ||
// LINUX-lib-flag-space-DAG: [[OBJECTFILE]] | ||
// LINUX-lib-flag-space-DAG: -lswiftCore | ||
// LINUX-lib-flag-space-DAG: -L [[STDLIB_PATH:[^ ]+(/|\\\\)lib(/|\\\\)swift(/|\\\\)]] | ||
// LINUX-lib-flag-space-DAG: -Xlinker -rpath -Xlinker [[STDLIB_PATH]] | ||
// LINUX-lib-flag-space-DAG: -F foo -iframework car -F cdr | ||
// LINUX-lib-flag-space-DAG: -framework bar | ||
// LINUX-lib-flag-space-DAG: -L baz | ||
// LINUX-lib-flag-space-DAG: -lboo | ||
// LINUX-lib-flag-space-DAG: -Xlinker -undefined | ||
// LINUX-lib-flag-space: -o main |
This file contains hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.