Skip to content

Commit

Permalink
feat(Build): Added CXX_STANDARD flag to override default when compili…
Browse files Browse the repository at this point in the history
…ng for C++ (#1259)
  • Loading branch information
EricB-ADI authored Nov 8, 2024
1 parent b47bf91 commit d2480e1
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 d2480e1

Please sign in to comment.