File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 1+ Fix GCC detection in setup.py when cross-compiling. The C compiler is now
2+ run with LC_ALL=C. Previously, the detection failed with a German locale.
Original file line number Diff line number Diff line change @@ -848,7 +848,9 @@ def add_cross_compiling_paths(self):
848848 tmpfile = os .path .join (self .build_temp , 'ccpaths' )
849849 if not os .path .exists (self .build_temp ):
850850 os .makedirs (self .build_temp )
851- ret = run_command ('%s -E -v - </dev/null 2>%s 1>/dev/null' % (CC , tmpfile ))
851+ # bpo-38472: With a German locale, GCC returns "gcc-Version 9.1.0
852+ # (GCC)", whereas it returns "gcc version 9.1.0" with the C locale.
853+ ret = run_command ('LC_ALL=C %s -E -v - </dev/null 2>%s 1>/dev/null' % (CC , tmpfile ))
852854 is_gcc = False
853855 is_clang = False
854856 in_incdirs = False
You can’t perform that action at this time.
0 commit comments