Skip to content

Commit 00a0b0b

Browse files
authored
Reland [mlir] Fix integration test when %host_cc path contains spaces (#128542)
Reland #128439 Some builders have spaces at the end of the `host_cc` path.
1 parent 6b44427 commit 00a0b0b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

mlir/test/Integration/Dialect/MemRef/memref_abi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// RUN: llc %t.ll -o %t.o -filetype=obj
1313

1414
// Compile the current C file and link it to the MLIR code:
15-
// RUN: %host_cc %s %t.o -o %t.exe
15+
// RUN: "%host_cc" %s %t.o -o %t.exe
1616

1717
// Exec
1818
// RUN: %t.exe | FileCheck %s

mlir/test/lit.cfg.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@
5656
config.substitutions.append(("%shlibext", config.llvm_shlib_ext))
5757
config.substitutions.append(("%llvm_src_root", config.llvm_src_root))
5858
config.substitutions.append(("%mlir_src_root", config.mlir_src_root))
59-
config.substitutions.append(("%host_cxx", config.host_cxx))
60-
config.substitutions.append(("%host_cc", config.host_cc))
59+
config.substitutions.append(("%host_cxx", config.host_cxx.strip()))
60+
config.substitutions.append(("%host_cc", config.host_cc.strip()))
6161

6262

6363
# Searches for a runtime library with the given name and returns the found path.

0 commit comments

Comments
 (0)