VirtualBox

Changeset 95121 in vbox


Ignore:
Timestamp:
May 25, 2022 9:12:06 PM (3 years ago)
Author:
vboxsync
Message:

/Config.kmk: Prepared for telling Visual C++ which C++ standard to use (VBOX_VCC_std).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r95063 r95121  
    34193419 endif
    34203420endif
     3421ifndef VBOX_VCC_std
     3422 if $(VBOX_VCC_TOOL_STEM) >= VCC141 # since 2017 15.3
     3423  if 0 # not yet enabled
     3424  VBOX_VCC_std := -std:c++17 -Zc:__cplusplus
     3425  endif
     3426 endif
     3427endif
    34213428
    34223429
     
    35073514 #    -wd4435: iprt/cpp/xml.h(185) : warning C4435: 'xml::Input' : Object layout under /vd2 will change due to virtual base 'xml::Stream'
    35083515 VBOX_VCC_WARN_ALL += -wd4350 -wd4435
    3509  VBOX_VCC120_WARN_ALL := $(VBOX_VCC_WARN_ALL)
    35103516endif
    35113517if "$(VBOX_VCC_TOOL_STEM)" >= "VCC140"
     
    35193525 #    -wd5027: 'SUPDRVTRACERDATA': move assignment operator was implicitly defined as deleted
    35203526 #    -wd4435: 'xml::Input': Object layout under /vd2 will change due to virtual base 'xml::Stream'
    3521  VBOX_VCC_WARN_ALL += -wd5045 -wd4464 -wd4623 -wd4625 -wd4626 -wd5026 -wd5027 -wd4435
     3527 #    -wd4577: 'noexcept' used with no exception handling mode specified; termination on exception is not guaranteed. Specify /EHsc
     3528 VBOX_VCC_WARN_ALL += -wd5045 -wd4464 -wd4623 -wd4625 -wd4626 -wd5026 -wd5027 -wd4435 -wd4577
    35223529endif
    35233530if "$(VBOX_VCC_TOOL_STEM)" >= "VCC142"  # With v16.11.9, not with v16.6.0 4242
     
    51745181TEMPLATE_VBoxR0_RCDEFS              = VBOX_SVN_REV=$(VBOX_SVN_REV) VBOX_SVN_REV_MOD_5K=$(expr $(VBOX_SVN_REV) % 50000)
    51755182TEMPLATE_VBoxR0_CXXFLAGS            = -Zi -Zl -GR- -EHs- -GF -GS- -Zc:wchar_t- $(VBOX_VCC_OPT) $(VBOX_VCC_FP) \
    5176         -Gy $(VBOX_VCC_CC_GUARD_CF) $(VBOX_VCC_WARN_ALL) -wd4505 $(VBOX_VCC_WERR)
     5183        -Gy $(VBOX_VCC_CC_GUARD_CF) $(VBOX_VCC_std) $(VBOX_VCC_WARN_ALL) -wd4505 $(VBOX_VCC_WERR)
    51775184 if "$(VBOX_VCC_TOOL_STEM)" >= "VCC120"
    51785185TEMPLATE_VBoxR0_CXXFLAGS           += -Gw
     
    51815188TEMPLATE_VBoxR0_CXXFLAGS           += /analyze
    51825189 endif
    5183 TEMPLATE_VBoxR0_CFLAGS              = $(TEMPLATE_VBoxR0_CXXFLAGS)
     5190TEMPLATE_VBoxR0_CFLAGS              = $(filter-out $(VBOX_VCC_std),$(TEMPLATE_VBoxR0_CXXFLAGS))
    51845191TEMPLATE_VBoxR0_LDFLAGS             = -Ignore:4197 \
    51855192        -Driver -Subsystem:NATIVE -Incremental:NO -Align:4096 -MapInfo:Exports -NoD $(VBOX_VCC_LD_WERR) \
     
    59205927 endif
    59215928 TEMPLATE_VBOXR3EXE_CXXFLAGS           = -Zi -Zl -GR- -EHsc -GF -MD$(VBOX_VCC_CRT_TYPE) -Zc:wchar_t- $(VBOX_VCC_OPT) $(VBOX_VCC_FP) \
    5922         -Gy $(VBOX_VCC_CC_GUARD_CF) $(VBOX_VCC_SANITIZER_FLAGS) $(VBOX_VCC_WARN_ALL) $(VBOX_VCC_WERR)
     5929        -Gy $(VBOX_VCC_CC_GUARD_CF) $(VBOX_VCC_SANITIZER_FLAGS) $(VBOX_VCC_std) $(VBOX_VCC_WARN_ALL) $(VBOX_VCC_WERR)
    59235930 if "$(VBOX_VCC_TOOL_STEM)" >= "VCC120"
    59245931  TEMPLATE_VBOXR3EXE_CXXFLAGS         += -Gw
     
    59305937 TEMPLATE_VBOXR3EXE_CXXFLAGS.dbgopt    = $(NO_SUCH_VARIABLE)
    59315938 TEMPLATE_VBOXR3EXE_CXXFLAGS.kprofile  = -Gh -GH
    5932  TEMPLATE_VBOXR3EXE_CFLAGS             = $(TEMPLATE_VBOXR3EXE_CXXFLAGS)
     5939 TEMPLATE_VBOXR3EXE_CFLAGS             = $(filter-out $(VBOX_VCC_std),$(TEMPLATE_VBOXR3EXE_CXXFLAGS))
    59335940 TEMPLATE_VBOXR3EXE_CFLAGS.debug       = $(TEMPLATE_VBOXR3EXE_CXXFLAGS.debug)
    59345941 TEMPLATE_VBOXR3EXE_CFLAGS.dbgopt      = $(TEMPLATE_VBOXR3EXE_CXXFLAGS.dbgopt)
     
    70267033 endif
    70277034 TEMPLATE_VBOXMAINEXE_CXXFLAGS           = -Zi -Zl -GR -EHsc -GF -MD$(VBOX_VCC_CRT_TYPE) -Zc:wchar_t- \
    7028         $(VBOX_VCC_OPT) $(VBOX_VCC_FP) $(VBOX_VCC_CC_GUARD_CF) $(VBOX_VCC_SANITIZER_FLAGS)
     7035        $(VBOX_VCC_OPT) $(VBOX_VCC_FP) $(VBOX_VCC_CC_GUARD_CF) $(VBOX_VCC_SANITIZER_FLAGS) $(VBOX_VCC_std)
    70297036 #    -wd4625: 'DisplaySourceBitmap' : copy constructor could not be generated because a base class copy constructor is inaccessible
    70307037 #    -wd4626: 'DisplaySourceBitmap' : assignment operator could not be generated because a base class assignment operator is inaccessible
     
    70427049 TEMPLATE_VBOXMAINEXE_CXXFLAGS.dbgopt    = $(NO_SUCH_VARIABLE)
    70437050 TEMPLATE_VBOXMAINEXE_CXXFLAGS.kprofile  = -Gh -GH
    7044  TEMPLATE_VBOXMAINEXE_CFLAGS             = $(TEMPLATE_VBOXMAINEXE_CXXFLAGS)
     7051 TEMPLATE_VBOXMAINEXE_CFLAGS             = $(filter-out $(VBOX_VCC_std),$(TEMPLATE_VBOXMAINEXE_CXXFLAGS))
    70457052 TEMPLATE_VBOXMAINEXE_CFLAGS.debug       = $(TEMPLATE_VBOXMAINEXE_CXXFLAGS.debug)
    70467053 TEMPLATE_VBOXMAINEXE_CFLAGS.dbgopt      = $(TEMPLATE_VBOXMAINEXE_CXXFLAGS.dbgopt)
     
    76967703     QT_DLL _CRT_SECURE_NO_DEPRECATE \
    76977704     $(QMAKE_PRL_DEFINES)
    7698   TEMPLATE_VBOXQTGUIEXE_CXXFLAGS = -nologo -Zm200 -MD -Zi -EHsc -Zc:wchar_t- $(VBOX_VCC_CC_GUARD_CF) $(VBOX_VCC_SANITIZER_FLAGS)
     7705  TEMPLATE_VBOXQTGUIEXE_CXXFLAGS = -nologo -Zm200 -MD -Zi -EHsc -Zc:wchar_t- $(VBOX_VCC_CC_GUARD_CF) $(VBOX_VCC_SANITIZER_FLAGS) $(VBOX_VCC_std)
    76997706  #    -wd4481: nonstandard extension used: override specifier 'override'
    77007707  #    -wd4625: 'QRubberBand' : copy constructor could not be generated because a base class copy constructor is inaccessible
     
    77177724   #   -wd4946: qmap.h(213): warning C4946: reinterpret_cast used between related classes: 'QMapNodeBase' and 'QMapNode<Key,T>'
    77187725   TEMPLATE_VBOXQTGUIEXE_CXXFLAGS += -wd4774 -wd4456 -wd4458 -wd4946
     7726  endif
     7727  if "$(VBOX_VCC_TOOL_STEM)" >= "VCC141"
     7728   #   -wd4866: UIVirtualBoxManager.cpp(221) : warning C4866: compiler may not enforce left-to-right evaluation order for call to 'QStringList::operator<<'
     7729   #            Only with -std=c++17 and later.
     7730   TEMPLATE_VBOXQTGUIEXE_CXXFLAGS += -wd4866
    77197731  endif
    77207732  if "$(VBOX_VCC_TOOL_STEM)" >= "VCC142" # With v16.11.9, not with v16.6.0 4242
     
    80308042 endif
    80318043 TEMPLATE_VBoxBldProg_CXXFLAGS          := -Zi -Zl -GR- -EHsc -GF -Zc:wchar_t- $(VBOX_VCC_OPT) $(VBOX_VCC_FP) \
    8032         -MT$(VBOX_VCC_CRT_TYPE) -Gy $(VBOX_VCC_CC_GUARD_CF) $(VBOX_VCC_WARN_ALL) $(VBOX_VCC_WERR)
     8044        -MT$(VBOX_VCC_CRT_TYPE) -Gy $(VBOX_VCC_CC_GUARD_CF) $(VBOX_VCC_std) $(VBOX_VCC_WARN_ALL) $(VBOX_VCC_WERR)
    80338045 if "$(VBOX_VCC_TOOL_STEM)" >= "VCC120"
    80348046  TEMPLATE_VBoxBldProg_CXXFLAGS         += -Gw
     
    80418053 TEMPLATE_VBoxBldProg_CXXFLAGS.profile   = $(TEMPLATE_VBoxBldProg_CXXFLAGS.release)
    80428054 TEMPLATE_VBoxBldProg_CXXFLAGS.kprofile  = $(TEMPLATE_VBoxBldProg_CXXFLAGS.release)
    8043  TEMPLATE_VBoxBldProg_CFLAGS             = $(TEMPLATE_VBoxBldProg_CXXFLAGS)
     8055 TEMPLATE_VBoxBldProg_CFLAGS             = $(filter-out $(VBOX_VCC_std),$(TEMPLATE_VBoxBldProg_CXXFLAGS))
    80448056 TEMPLATE_VBoxBldProg_CFLAGS.debug       = $(TEMPLATE_VBoxBldProg_CXXFLAGS.debug)
    80458057 TEMPLATE_VBoxBldProg_CFLAGS.dbgopt      = $(TEMPLATE_VBoxBldProg_CXXFLAGS.dbgopt)
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