Skip to content

Commit eae82da

Browse files
Add configured CXXFLAGS to LLVM's CXXFLAGS var.
1 parent aeb9a6c commit eae82da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mk/main.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,10 +316,10 @@ LLVM_LDFLAGS_$(1)=$$(shell "$$(LLVM_CONFIG_$(1))" --ldflags)
316316
ifeq ($$(findstring freebsd,$(1)),freebsd)
317317
# On FreeBSD, it may search wrong headers (that are for pre-installed LLVM),
318318
# so we replace -I with -iquote to ensure that it searches bundled LLVM first.
319-
LLVM_CXXFLAGS_$(1)=$$(subst -I, -iquote , $$(shell "$$(LLVM_CONFIG_$(1))" --cxxflags))
319+
LLVM_CXXFLAGS_$(1)=$$(subst -I, -iquote , $$(shell "$$(LLVM_CONFIG_$(1))" --cxxflags) $$(CXXFLAGS))
320320
else
321321
LLVM_CXXFLAGS_$(1)=$$(filter-out $$(LLVM_FILTER_CXXFLAGS_$(1)), \
322-
$$(shell "$$(LLVM_CONFIG_$(1))" --cxxflags)) \
322+
$$(shell "$$(LLVM_CONFIG_$(1))" --cxxflags) $$(CXXFLAGS)) \
323323
$$(LLVM_EXTRA_CXXFLAGS_$(1))
324324
endif
325325
LLVM_HOST_TRIPLE_$(1)=$$(shell "$$(LLVM_CONFIG_$(1))" --host-target)

0 commit comments

Comments
 (0)