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 1010import pickle
1111import platform
1212import re
13+ import shlex
1314import shutil
1415import stat
1516import subprocess
@@ -2610,15 +2611,15 @@ def compile_str(
26102611 cmd .append (f"{ path_wrapper } { cppfilename } { path_wrapper } " )
26112612 cmd .extend (GCC_compiler .linking_patch (lib_dirs , libs ))
26122613 # print >> sys.stderr, 'COMPILING W CMD', cmd
2613- _logger .debug (f"Running cmd: { ' ' .join (cmd )} " )
2614+ _logger .debug (f"Running cmd: { shlex .join (cmd )} " )
26142615
26152616 def print_command_line_error ():
26162617 # Print command line when a problem occurred.
26172618 print (
26182619 ("Problem occurred during compilation with the command line below:" ),
26192620 file = sys .stderr ,
26202621 )
2621- print (" " .join (cmd ), file = sys .stderr )
2622+ print (shlex .join (cmd ), file = sys .stderr )
26222623
26232624 try :
26242625 p_out = output_subprocess_Popen (cmd )
You can’t perform that action at this time.
0 commit comments