diff options
author | Simon Cook <simon.cook@embecosm.com> | 2020-12-09 10:39:28 +0000 |
---|---|---|
committer | Kito Cheng <kito.cheng@sifive.com> | 2020-12-10 17:11:41 +0800 |
commit | 8d63e3c229f32d441e6ead0cb62923095b54c5f9 (patch) | |
tree | 625178a7c22826e14b13945410afbb8a62f630eb /gcc | |
parent | 73cf5da233b4cd0f140dd997270e88de63e27db7 (diff) | |
download | gcc-8d63e3c229f32d441e6ead0cb62923095b54c5f9.zip gcc-8d63e3c229f32d441e6ead0cb62923095b54c5f9.tar.gz gcc-8d63e3c229f32d441e6ead0cb62923095b54c5f9.tar.bz2 |
RISC-V: Explicitly call python when using multilib generator
When building GCC for RISC-V with the --with-multilib-generator option,
it may not be possible to call arch-canonicalize as an executable when
building on Windows. Instead directly invoke the expected python
interpreter for this step.
gcc/ChangeLog:
* config/riscv/multilib-generator (arch_canonicalize): Invoke
python interpreter when calling arch-canonicalize script.
Diffstat (limited to 'gcc')
-rwxr-xr-x | gcc/config/riscv/multilib-generator | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/config/riscv/multilib-generator b/gcc/config/riscv/multilib-generator index 53c51df..ccfd9ea 100755 --- a/gcc/config/riscv/multilib-generator +++ b/gcc/config/riscv/multilib-generator @@ -54,7 +54,8 @@ def arch_canonicalize(arch): this_file = os.path.abspath(os.path.join( __file__)) arch_can_script = \ os.path.join(os.path.dirname(this_file), "arch-canonicalize") - proc = subprocess.Popen([arch_can_script, arch], stdout=subprocess.PIPE) + proc = subprocess.Popen([sys.executable, arch_can_script, arch], + stdout=subprocess.PIPE) out, err = proc.communicate() return out.strip() |