Skip to content

Commit c9bfe04

Browse files
committed
[lldb/test] Fix TestScriptedProcess.py failures on arm linux bots
This patch tentatively fixes TestScriptedProcess.py which has been failing on the `lldb-arm-ubuntu` & `lldb-aarch64-ubuntu` bots: - https://lab.llvm.org/buildbot/#/builders/17/builds/44965 - https://lab.llvm.org/buildbot/#/builders/96/builds/48152 According to the test log, on those systems, the clang driver that build the test binary doesn't have the `-m` flag to specify the architure so this patch replaces it with the `-target` flag using `clang -dumpmachine` to get the host triple. Signed-off-by: Med Ismail Bennani <[email protected]>
1 parent c621350 commit c9bfe04

File tree

1 file changed

+4
-2
lines changed
  • lldb/test/API/functionalities/scripted_process

1 file changed

+4
-2
lines changed

lldb/test/API/functionalities/scripted_process/Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@ CXX_SOURCES := main.cpp
22
ENABLE_THREADS := YES
33
LD_EXTRAS := -L. -lbaz -I.
44

5-
override ARCH := $(shell uname -m)
5+
override TRIPLE := $(shell $(CC) -dumpmachine)
6+
7+
CXXFLAGS_EXTRAS := -target $(TRIPLE)
68

79
all: libbaz.dylib a.out
810

911
libbaz.dylib: baz.cpp
10-
$(MAKE) -f $(MAKEFILE_RULES) ARCH=$(ARCH) \
12+
$(MAKE) -f $(MAKEFILE_RULES) \
1113
DYLIB_ONLY=YES DYLIB_NAME=baz DYLIB_CXX_SOURCES=baz.cpp
1214

1315
include Makefile.rules

0 commit comments

Comments
 (0)