[compiler-rt] 337bd67 - [CRT][LIT]  split target_cflags using shlex
    Jinsong Ji via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Aug 19 18:47:02 PDT 2021
    
    
  
Author: Jinsong Ji
Date: 2021-08-19T21:44:20-04:00
New Revision: 337bd67d836b7cb7a18fb08df8f3a7902338c7fa
URL: https://github.com/llvm/llvm-project/commit/337bd67d836b7cb7a18fb08df8f3a7902338c7fa
DIFF: https://github.com/llvm/llvm-project/commit/337bd67d836b7cb7a18fb08df8f3a7902338c7fa.diff
LOG: [CRT][LIT]  split target_cflags using shlex
Update the commit to use shlex.split, as the win32 is not supported.
See https://reviews.llvm.org/D108329 for discussions.
Added: 
    
Modified: 
    compiler-rt/test/crt/lit.cfg.py
Removed: 
    
################################################################################
diff  --git a/compiler-rt/test/crt/lit.cfg.py b/compiler-rt/test/crt/lit.cfg.py
index b4bbbfcf03064..d5a6aa9862d9d 100644
--- a/compiler-rt/test/crt/lit.cfg.py
+++ b/compiler-rt/test/crt/lit.cfg.py
@@ -2,6 +2,7 @@
 
 import os
 import subprocess
+import shlex
 
 # Setup config name.
 config.name = 'CRT' + config.name_suffix
@@ -24,7 +25,7 @@
 def get_library_path(file):
     cmd = subprocess.Popen([config.clang.strip(),
                             '-print-file-name=%s' % file] +
-                           [config.target_cflags],
+                           shlex.split(config.target_cflags),
                            stdout=subprocess.PIPE,
                            env=config.environment,
                            universal_newlines=True)
@@ -40,7 +41,7 @@ def get_library_path(file):
 def get_libgcc_file_name():
     cmd = subprocess.Popen([config.clang.strip(),
                             '-print-libgcc-file-name'] +
-                           [config.target_cflags],
+                           shlex.split(config.target_cflags),
                            stdout=subprocess.PIPE,
                            env=config.environment,
                            universal_newlines=True)
        
    
    
More information about the llvm-commits
mailing list