Skip to content

Fix wholelib linking rules to allow path with whitespaces#42718

Closed
malfet wants to merge 1 commit intopytorch:masterfrom
malfet:malfet/build-with-whitespaces
Closed

Fix wholelib linking rules to allow path with whitespaces#42718
malfet wants to merge 1 commit intopytorch:masterfrom
malfet:malfet/build-with-whitespaces

Conversation

@malfet
Copy link
Copy Markdown
Contributor

@malfet malfet commented Aug 7, 2020

Essentially, replace -Wl,--whole-archive,$<TARGET_FILE:FOO> with -Wl,--whole-archive,\"$<TARGET_FILE:FOO>\" as TARGET_FILE might return path containing whitespaces

Fixes #42657

Essentially, replace `-Wl,--whole-archive,$<TARGET_FILE:FOO>` with `-Wl,--whole-archive,\"$<TARGET_FILE:FOO>\"` as TARGET_FILE might return path containing whitespaces
@malfet malfet requested review from orionr and seemethere August 7, 2020 02:21
Copy link
Copy Markdown
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@malfet has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@malfet malfet changed the title Fix some linking rules to allow path with whitespaces Fix wholelib linking rules to allow path with whitespaces Aug 7, 2020
@malfet malfet requested a review from ezyang August 7, 2020 16:38
@facebook-github-bot
Copy link
Copy Markdown
Contributor

@malfet merged this pull request in dcee893.

@dr-ci
Copy link
Copy Markdown

dr-ci Bot commented Aug 7, 2020

💊 CI failures summary and remediations

As of commit d3c3e92 (more details on the Dr. CI page):


  • 1/1 failures possibly* introduced in this PR
    • 1/1 non-CircleCI failure(s)

ci.pytorch.org: 1 failed


This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions on the GitHub issue tracker or post in the (internal) Dr. CI Users group.

See how this bot performed.

This comment has been revised 1 time.

@malfet malfet deleted the malfet/build-with-whitespaces branch August 11, 2020 14:18
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
Summary:
Essentially, replace `-Wl,--whole-archive,$<TARGET_FILE:FOO>` with `-Wl,--whole-archive,\"$<TARGET_FILE:FOO>\"` as TARGET_FILE might return path containing whitespaces

Fixes pytorch#42657

Pull Request resolved: pytorch#42718

Reviewed By: ezyang

Differential Revision: D22993568

Pulled By: malfet

fbshipit-source-id: de878b17d20e35b51dd350f20d079c8b879f70b5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Linking torch_cpu files if compiled in a path containing whitespace

4 participants