Skip to content

BUG: Do not double-quote arguments passed on to the linker #12898

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
merged 1 commit into from
Jan 31, 2019

Conversation

charris
Copy link
Member

@charris charris commented Jan 31, 2019

Backport of #12892.

After the recent patch to CCompiler.spawn, the file-paths no longer need manual quoting - that's handled as needed within subprocess.

This also states our assumption that our paths do not contain commas.
If we care about this, we could adopt the approach used by rust-lang/rust#38795.

Tested for gcc locally by looking at the error messages of subprocess.check_call(["gcc", r'-Wl,spaces and no quotes'])

Other fortran compiler changes not tested, but assumed to be broken in the same way.

Fixes #12882

After the recent patch to CCompiler.spawn, the file-paths no longer need manual quoting - that's handled as needed within subprocess.

This also states our assumption that our paths do not contain commas.
If we care about this, we could adopt the approach used by rust-lang/rust#38795.

Tested for gcc locally by looking at the error messages of `subprocess.check_call(["gcc", r'-Wl,spaces and no quotes'])`

Other fortran compiler changes not tested, but assumed to be broken in the same way.

Fixes numpy#12882
@charris charris added this to the 1.16.1 release milestone Jan 31, 2019
@charris charris merged commit 7338e77 into numpy:maintenance/1.16.x Jan 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants