VirtualBox

Changeset 94766 in vbox


Ignore:
Timestamp:
May 1, 2022 5:44:44 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
151152
Message:

/Config.kmk: Prepped upping VBOX_GCC_std to c++17.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r94664 r94766  
    34123412
    34133413#
    3414 # C++ language level.
    3415 ## @todo consider maxing this.
    3416 #
     3414# C++ language level
     3415# See https://en.cppreference.com/w/cpp/compiler_support and compiler docs.
     3416#
     3417## @todo consider maxing this out.
    34173418ifndef VBOX_GCC_std
    3418  ## @todo rewrite using "$(VBOX_CLANG_VERSION_CXX)" vge 50000 so we can skip the ifneq stuff here.
    3419  ifneq ($(VBOX_CLANG_VERSION_CXX),)
    3420   if $(VBOX_CLANG_VERSION_CXX) >= 50000 # darwin Xcode 5 allegedly knows what C++11 is
     3419 if 0
     3420# else if "$(VBOX_CLANG_VERSION_CXX)" vge 60000 # Most language features complete by v6. Lib stuff was less complete in v6, but hopefully acceptable for out purposes.
     3421#VBOX_GCC_std := -std=c++17
     3422 else if "$(VBOX_CLANG_VERSION_CXX)" vge 50000 # darwin Xcode 5 allegedly knows what C++11 is
    34213423VBOX_GCC_std := -std=c++11
    3422   endif
    3423  endif
    3424  if "$(VBOX_GCC_VERSION_CXX)" != "" && !defined(VBOX_GCC_std)
    3425   if $(VBOX_GCC_VERSION_CXX) >= 40800
     3424# else if "$(VBOX_GCC_VERSION_CXX)" vge 70000 # Language feature P0512R0 was v8, rest v7 or earlier. Most lib stuff present in 7, complete in v12.
     3425#VBOX_GCC_std := -std=gnu++17
     3426 else if "$(VBOX_GCC_VERSION_CXX)" vge 40800
    34263427VBOX_GCC_std := -std=c++11
    3427   else if $(VBOX_GCC_VERSION_CXX) >= 40600
     3428 else if "$(VBOX_GCC_VERSION_CXX)" vge 40600
    34283429VBOX_GCC_std := -std=c++0x
    3429   endif
    34303430 endif
    34313431endif
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette