Skip to content

Commit 2acbe0b

Browse files
committed
Use += to add to existing variable CXXFLAGS
1 parent 3b34d63 commit 2acbe0b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ endif
4040

4141
CXX_FILES := $(BASIC_FILES) $(SSE_FILES) $(AVX2_FILES) $(AVX512_FILES)
4242
CXX_TARGETS := $(CXX_FILES:%.cc=%.x)
43-
CXXFLAGS := $(CXXFLAGS) $(SSE_FLAGS) $(AVX2_FLAGS) $(AVX512_FLAGS) $(BMI2_FLAGS)
43+
CXXFLAGS += $(SSE_FLAGS) $(AVX2_FLAGS) $(AVX512_FLAGS) $(BMI2_FLAGS)
4444

4545
CUDA_FILES := $(wildcard *cuda_test.cu)
4646
CUDA_TARGETS := $(CUDA_FILES:%cuda_test.cu=%cuda_test.x)

0 commit comments

Comments
 (0)