File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 10
10
import pickle
11
11
import platform
12
12
import re
13
+ import shlex
13
14
import shutil
14
15
import stat
15
16
import subprocess
@@ -2610,15 +2611,15 @@ def compile_str(
2610
2611
cmd .append (f"{ path_wrapper } { cppfilename } { path_wrapper } " )
2611
2612
cmd .extend (GCC_compiler .linking_patch (lib_dirs , libs ))
2612
2613
# print >> sys.stderr, 'COMPILING W CMD', cmd
2613
- _logger .debug (f"Running cmd: { ' ' .join (cmd )} " )
2614
+ _logger .debug (f"Running cmd: { shlex .join (cmd )} " )
2614
2615
2615
2616
def print_command_line_error ():
2616
2617
# Print command line when a problem occurred.
2617
2618
print (
2618
2619
("Problem occurred during compilation with the command line below:" ),
2619
2620
file = sys .stderr ,
2620
2621
)
2621
- print (" " .join (cmd ), file = sys .stderr )
2622
+ print (shlex .join (cmd ), file = sys .stderr )
2622
2623
2623
2624
try :
2624
2625
p_out = output_subprocess_Popen (cmd )
You can’t perform that action at this time.
0 commit comments