Skip to content

Commit 614f1ab

Browse files
authored
[lldb] Add RISCV for Makefile.rules (llvm#124758)
As discussed with @DavidSpickett in discord. Running the test runner caused the following issue: ``` gmake: Entering directory '/home/kper/oss/llvm-project/build/lldb-test-build.noindex/functionalities/thread/concurrent_events/TestConcurrentSignalWatch.test' /home/kper/oss/llvm-project/build/bin/clang++ -std=c++11 -g -O0 -mriscv -I/home/kper/oss/llvm-project/lldb/packages/Python/lldbsuite/test/make/../../../../..//include -I/home/kper/oss/llvm-project/build/tools/lldb/include -I/home/kper/oss/llvm-project/lldb/test/API/functionalities/thread/concurrent_events -I/home/kper/oss/llvm-project/lldb/packages/Python/lldbsuite/test/make -include /home/kper/oss/llvm-project/lldb/packages/Python/lldbsuite/test/make/test_common.h -fno-limit-debug-info --driver-mode=g++ -MT main.o -MD -MP -MF main.d -c -o main.o /home/kper/oss/llvm-project/lldb/test/API/functionalities/thread/concurrent_events/main.cpp clang++: error: unknown argument: '-mriscv' gmake: *** [Makefile.rules:619: main.o] Error 1 ``` By overriding the flags, we avoid the `-mriscv`.
1 parent 41910f7 commit 614f1ab

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lldb/packages/Python/lldbsuite/test/make/Makefile.rules

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,10 @@ else
207207
override ARCH :=
208208
override ARCHFLAG :=
209209
endif
210+
ifeq "$(ARCH)" "riscv"
211+
override ARCH :=
212+
override ARCHFLAG :=
213+
endif
210214
ifeq "$(findstring mips,$(ARCH))" "mips"
211215
override ARCHFLAG := -
212216
endif

0 commit comments

Comments
 (0)