VirtualBox

Changeset 75629 in vbox


Ignore:
Timestamp:
Nov 20, 2018 6:55:33 PM (6 years ago)
Author:
vboxsync
Message:

Config.kmk: Attempt to correct r126801 - it is not okay to invent tool properties like DTRACE_ENV_SETUP when you're not the tool, always prefix VBOX specific variables/properties! Generally, variables are more expensive than conditionals, especially when you've got the conditional anyway. Thus the if/else/endif fix is preferred.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r75624 r75629  
    22772277 endif
    22782278 ifdef VBOX_WITH_NEW_XCODE
    2279   # For MacOS Mojave (and probably newer) we need a more recent XCode from the system.
    2280   # So just drop the tool environment and use the system's XCode instead.
    2281   TOOL_StandardDTrace_DTRACE_ENV_SETUP:=
    2282   if $(KBUILD_HOST_VERSION_MAJOR) < 18 # (OS X 10.14 Mojave)
    2283    TOOL_StandardDTrace_DTRACE_ENV_SETUP=$(TOOL_$(VBOX_GCC_TOOL)_ENV_SETUP)
    2284   endif
    2285   override TOOL_StandardDTrace_DTRACE := dtrace $(TOOL_StandardDTrace_DTRACE_ENV_SETUP) "-xcpppath=$(VBOX_PATH_MACOSX_DEVEL_ROOT)/usr/bin/gcc"
     2279  if $(KBUILD_HOST_VERSION_MAJOR) >= 18 # HACK ALERT! dtrace doesn't work on Mojave if we specify our Xcode 6.2 environment.
     2280   override TOOL_StandardDTrace_DTRACE := dtrace "-xcpppath=$(VBOX_PATH_MACOSX_DEVEL_ROOT)/usr/bin/gcc"
     2281  else
     2282   override TOOL_StandardDTrace_DTRACE := $(TOOL_$(VBOX_GCC_TOOL)_ENV_SETUP) dtrace "-xcpppath=$(VBOX_PATH_MACOSX_DEVEL_ROOT)/usr/bin/gcc"
     2283  endif
    22862284  export PATH:=$(VBOX_PATH_MACOSX_SDK)/usr/bin:$(PATH)
    22872285 else
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