Skip to content

Commit

Permalink
Rework compiler detection
Browse files Browse the repository at this point in the history
    * ACE/include/makeinclude/platform_linux_clang.GNU:
  • Loading branch information
jwillemsen committed Apr 23, 2024
1 parent e78b80f commit 8790503
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ACE/include/makeinclude/platform_linux_clang.GNU
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ endif
ifeq (cmd,$(findstring cmd,$(SHELL)))
CXX_MAJOR_VERSION := $(firstword $(subst ., ,$(CXX_VERSION)))
else
CXX_MAJOR_VERSION := $(shell $(CXX) -dumpversion | sed -e 's/[^0-9\.]//g' | sed -e 's/\..*$$//')
CXX_MAJOR_DOT = $(word $2,$(subst ., ,$1))
CXX_MAJOR_VERSION := $(call CXX_MAJOR_DOT,$(CXX_VERSION),1)
endif

# clang 16 and newer default to C++17
Expand Down

0 comments on commit 8790503

Please sign in to comment.