-
Notifications
You must be signed in to change notification settings - Fork 787
[SYCL][Driver] -foffload-static-lib improvements when no source is given #1072
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
[SYCL][Driver] -foffload-static-lib improvements when no source is given #1072
Conversation
Provides improvements to behaviors of -foffload-static-lib when no source or object file is also provided on the command line. - Adds new -foffload-whole-static-lib option that is similar to -foffload-static-lib, except during the partial linkage stage. That is where the whole-archive is used to preserve all items in the archive before being unbundled. - Adds the arguments to -foffload-static-lib to be considered as true inputs to the compiler. This triggers proper link steps on the offload side as well as places the library directly on the link. - Moves the static-lib tests into a static-lib specific test Signed-off-by: Michael D Toguchi <[email protected]>
Signed-off-by: Michael D Toguchi <[email protected]>
Update comments for readability, and improve partial linking step in regards to --whole-archive/--no-whole-archive usage Signed-off-by: Michael D Toguchi <[email protected]>
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.
A couple minor comments, LGTM otherwise
Signed-off-by: Michael D Toguchi <[email protected]>
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.
Missed these nits initially
Signed-off-by: Michael D Toguchi <[email protected]>
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.
Nits ARE gone, thanks! LGTM
Provides improvements to behaviors of -foffload-static-lib when no source
or object file is also provided on the command line.
-foffload-static-lib, except during the partial linkage stage. That is
where the whole-archive is used to preserve all items in the archive
before being unbundled.
to the compiler. This triggers proper link steps on the offload side as
well as places the library directly on the link.
Signed-off-by: Michael D Toguchi [email protected]