[apps] Remove warning of unused linker flag in LLVM
@@ -78,20 +78,17 @@ RISCV_WARNINGS += -Wunused-variable -Wconversion -Wall -Wextra # -Werror
RISCV_FLAGS_COMMON_TESTS ?= -march=$(RISCV_ARCH) -mabi=$(RISCV_ABI) -I$(CURDIR)/common -static
RISCV_FLAGS_COMMON ?= $(RISCV_FLAGS_COMMON_TESTS) -std=gnu99 -O3 -ffast-math -fno-common -fno-builtin-printf $(DEFINES) $(RISCV_WARNINGS)
RISCV_FLAGS_GCC ?= -mcmodel=medany -Wa,-march=$(RISCV_ARCH_AS) -mtune=mempool -falign-loops=32 -falign-jumps=32
-
RISCV_FLAGS_LLVM ?= -mcmodel=small -mllvm -enable-misched
-ifeq ($(COMPILER),gcc)
- RISCV_FLAGS ?= $(RISCV_FLAGS_GCC) $(RISCV_FLAGS_COMMON)
-else
- RISCV_FLAGS ?= $(RISCV_LLVM_TARGET) $(RISCV_FLAGS_LLVM) $(RISCV_FLAGS_COMMON)
-endif
-RISCV_CCFLAGS ?= $(RISCV_FLAGS)
-RISCV_CXXFLAGS ?= $(RISCV_FLAGS)
-RISCV_LDFLAGS ?= -static -nostartfiles -lm -lgcc $(RISCV_FLAGS)
ifeq ($(COMPILER),gcc)
+ RISCV_CCFLAGS ?= $(RISCV_FLAGS_GCC) $(RISCV_FLAGS_COMMON)
+ RISCV_CXXFLAGS ?= $(RISCV_CCFLAGS)
+ RISCV_LDFLAGS ?= -static -nostartfiles -lm -lgcc $(RISCV_CCFLAGS)
RISCV_OBJDUMP_FLAGS ?= --disassembler-option="march=$(RISCV_ARCH_AS)"
else
+ RISCV_CCFLAGS ?= $(RISCV_LLVM_TARGET) $(RISCV_FLAGS_LLVM) $(RISCV_FLAGS_COMMON)
+ RISCV_CXXFLAGS ?= $(RISCV_CCFLAGS)
+ RISCV_LDFLAGS ?= -static -nostartfiles -lm -lgcc -mcmodel=small $(RISCV_LLVM_TARGET) $(RISCV_FLAGS_COMMON)
RISCV_OBJDUMP_FLAGS ?=
endif
