[llvm] 340d558 - [M68k] Fixed incorrect `extract-section` command substitution

Min-Yih Hsu via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 16 13:38:57 PDT 2021


Author: Min-Yih Hsu
Date: 2021-03-16T13:37:50-07:00
New Revision: 340d558c77892bbd197288bafde6f211740278d7

URL: https://github.com/llvm/llvm-project/commit/340d558c77892bbd197288bafde6f211740278d7
DIFF: https://github.com/llvm/llvm-project/commit/340d558c77892bbd197288bafde6f211740278d7.diff

LOG: [M68k] Fixed incorrect `extract-section` command substitution

Fix Bug 49485 (https://bugs.llvm.org/show_bug.cgi?id=49485). Which was
caused by incorrect invocation of `extract-section.py` on Windows.
Replacing it with more general python script invocation.

Differential Revision: https://reviews.llvm.org/D98661

Added: 
    

Modified: 
    llvm/test/CodeGen/M68k/lit.local.cfg

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/M68k/lit.local.cfg b/llvm/test/CodeGen/M68k/lit.local.cfg
index 8e4684705573..f42093af0770 100644
--- a/llvm/test/CodeGen/M68k/lit.local.cfg
+++ b/llvm/test/CodeGen/M68k/lit.local.cfg
@@ -6,7 +6,8 @@ extract_section_path = os.path.join(config.llvm_src_root,
         'utils', 'extract-section.py')
 
 config.substitutions.append(('extract-section',
-    extract_section_path + ' --byte-indicator --hex-width=2'))
+    "'%s' %s %s" % (config.python_executable,
+                    extract_section_path, '--byte-indicator --hex-width=2')))
 
 if not 'M68k' in config.root.targets:
     config.unsupported = True


        


More information about the llvm-commits mailing list