Skip to content

Commit

Permalink
added CXX_STANDARD flag for override of default
Browse files Browse the repository at this point in the history
  • Loading branch information
EricB-ADI committed Nov 8, 2024
1 parent ca32bc2 commit 4eee0a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Libraries/CMSIS/Device/Maxim/GCC/gcc.mk
Original file line number Diff line number Diff line change
Expand Up @@ -405,10 +405,11 @@ CFLAGS=-mthumb \

# The flags passed to the C++ compiler.
CXXFLAGS := $(CFLAGS)
CXX_STANDARD?=17
CXXFLAGS += \
-fno-rtti \
-fno-exceptions \
-std=c++11 \
-std=c++$(CXX_STANDARD)

# On GCC version > 4.8.0 use the -fno-isolate-erroneous-paths-dereference flag
ifeq "$(GCCVERSIONGTEQ4)" "1"
Expand Down

0 comments on commit 4eee0a5

Please sign in to comment.