Skip to content

Commit

Permalink
Merge pull request #2127 from jwillemsen/jwi-c++std
Browse files Browse the repository at this point in the history
Add support for c++std in platform_macros.GNU
  • Loading branch information
jwillemsen authored Sep 15, 2023
2 parents 28f307f + 3acac49 commit 8c79a94
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,19 @@ jobs:
- CC: gcc-11
CXX: g++-11
PackageDeps: g++-11
optional_macros: CCFLAGS+=-std=c++20
optional_macros: c++std=c++20
platform_file: include $(ACE_ROOT)/include/makeinclude/platform_linux.GNU
os: ubuntu-22.04
- CC: gcc-12
CXX: g++-12
PackageDeps: g++-12
optional_macros: CCFLAGS+=-std=c++20
optional_macros: c++std=c++20
platform_file: include $(ACE_ROOT)/include/makeinclude/platform_linux.GNU
os: ubuntu-22.04
- CC: gcc-13
CXX: g++-13
PackageDeps: g++-13
optional_macros: CCFLAGS+=-std=c++20
optional_macros: c++std=c++20
platform_file: include $(ACE_ROOT)/include/makeinclude/platform_linux.GNU
os: ubuntu-22.04
- CC: clang-6.0
Expand Down
3 changes: 3 additions & 0 deletions ACE/NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ USER VISIBLE CHANGES BETWEEN ACE-7.1.1 and ACE-7.1.2
ACE_Auto_Basic_Ptr, ACE_Auto_Basic_Array_Ptr, ACE_Auto_Array_Ptr,
and ACE_auto_ptr_reset anymore, just use std::unique_ptr

. Add c++std which can be used in the platform_macros.GNU
to set the C++ revision to be used (results in -std= flag)

USER VISIBLE CHANGES BETWEEN ACE-7.1.0 and ACE-7.1.1
====================================================

Expand Down
4 changes: 4 additions & 0 deletions ACE/include/makeinclude/platform_gcc_clang_common.GNU
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ else
CPPFLAGS += -DACE_HAS_CUSTOM_EXPORT_MACROS=0
endif # shared_libs

ifneq ($(c++std),)
CCFLAGS += -std=$(c++std)
endif

ifeq ($(c++20),1)
CCFLAGS += -std=c++20
else
Expand Down

0 comments on commit 8c79a94

Please sign in to comment.