make: Place C++ includes before C includes when compiling C++
Fixes some errors when specifying system C++ include directories where the C++ headers need to #include_next related C headers.
This commit is contained in:
parent
d4f2070e8b
commit
e2dc99f464
|
@ -70,7 +70,7 @@ $(OBJCXX): $(BINDIR)/$(MODULE)/%.o: %.cpp $(RIOTBUILD_CONFIG_HEADER_C)
|
|||
$(AD)$(CCACHE) $(CXX) \
|
||||
-DRIOT_FILE_RELATIVE=\"$(patsubst $(RIOTBASE)/%,%,$(abspath $<))\" \
|
||||
-DRIOT_FILE_NOPATH=\"$(notdir $<)\" \
|
||||
$(CXXFLAGS) $(INCLUDES) $(CXXINCLUDES) -MD -MP -c -o $@ $(abspath $<)
|
||||
$(CXXFLAGS) $(CXXINCLUDES) $(INCLUDES) -MD -MP -c -o $@ $(abspath $<)
|
||||
|
||||
$(ASMOBJ): $(BINDIR)/$(MODULE)/%.o: %.s
|
||||
$(AD)$(AS) $(ASFLAGS) -o $@ $(abspath $<)
|
||||
|
|
Loading…
Reference in New Issue