Skip to content

[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

Merged

Conversation

mdtoguchi
Copy link
Contributor

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]

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]>
@AGindinson AGindinson self-assigned this Jan 30, 2020
Signed-off-by: Michael D Toguchi <[email protected]>
@mdtoguchi mdtoguchi requested a review from AGindinson February 6, 2020 05:33
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]>
@mdtoguchi mdtoguchi requested a review from AGindinson February 10, 2020 15:29
Copy link
Contributor

@AGindinson AGindinson left a 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

Copy link
Contributor

@AGindinson AGindinson left a 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

Copy link
Contributor

@AGindinson AGindinson left a 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

@bader bader merged commit 360b25b into intel:sycl Feb 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants