Ignore:
Timestamp:
Apr 17, 2020, 9:10:19 PM (5 years ago)
Author:
bird
Message:

tools/VCC141*.kmk: More work on the Visual C++ 14.1 tools.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/tools/VCC141X86.kmk

    r3325 r3326  
    5454endif
    5555PATH_TOOL_VCC141X86_BIN_QSH := $(requote sh,$(PATH_TOOL_VCC141X86_BIN))
     56
     57# A bunch of DLLs are only in the subdir matching the host one, so we need to add it to the PATH when cross compiling.
     58ifndef PATH_TOOL_VCC141X86_DLL_BIN
     59 ifneq ($(PATH_TOOL_VCC141_HOST_DLL_BIN),$(PATH_TOOL_VCC141X86_BIN))
     60PATH_TOOL_VCC141X86_DLL_BIN := $(PATH_TOOL_VCC141_HOST_DLL_BIN)
     61 endif
     62endif
    5663
    5764ifndef PATH_TOOL_VCC141X86_LIB
     
    9097  ifneq ($(substr $(qdir un,$(PATH_TOOL_VCC141X86_BIN)),-3),64/)
    9198   TOOL_VCC141X86_KSUBMIT ?= kmk_builtin_kSubmit --64-bit
    92    TOOL_VCC141X86_KSUBMIT_DD = $(TOOL_VCC141X86_KSUBMIT) --
    9399  else
    94100   TOOL_VCC141X86_KSUBMIT ?= kmk_builtin_kSubmit --32-bit
    95    TOOL_VCC141X86_KSUBMIT_DD = $(TOOL_VCC141X86_KSUBMIT) --
    96101  endif
     102  ifdef PATH_TOOL_VCC141X86_DLL_BIN
     103   TOOL_VCC141X86_KSUBMIT := $(TOOL_VCC141X86_KSUBMIT) --prepend "PATH=$(requote shell-in-dq,$(PATH_TOOL_VCC141X86_DLL_BIN));"
     104  endif
     105  TOOL_VCC141X86_KSUBMIT_DD := $(TOOL_VCC141X86_KSUBMIT) --
     106 endif
     107endif
     108ifdef PATH_TOOL_VCC141X86_DLL_BIN
     109 TOOL_VCC141X86_SETUP_ENV   := $(REDIRECT) --prepend "PATH=$(requote shell-in-dq,$(PATH_TOOL_VCC141X86_DLL_BIN));" --$(SP)
     110 ifndef TOOL_VCC141X86_KSUBMIT_DD
     111  TOOL_VCC141X86_KSUBMIT_DD := $(TOOL_VCC141X86_SETUP_ENV)
    97112 endif
    98113endif
     
    165180else
    166181 define TOOL_VCC141X86_COMPILE_C_CMDS
    167         $(QUIET)$(TOOL_VCC141X86_CC) -c\
     182        $(QUIET)$(TOOL_VCC141X86_SETUP_ENV)$(TOOL_VCC141X86_CC) -c\
    168183                $(flags) $(qaddprefix sh,-I, $(incs)) $(qaddprefix sh,-D, $(defs))\
    169184                -Fd$(outbase)-obj.pdb \
     
    207222else
    208223 define TOOL_VCC141X86_COMPILE_CXX_CMDS
    209         $(QUIET)$(TOOL_VCC141X86_CXX) -c\
     224        $(QUIET)$(TOOL_VCC141X86_SETUP_ENV)$(TOOL_VCC141X86_CXX) -c\
    210225                $(flags) $(qaddprefix sh,-I, $(incs)) $(qaddprefix sh,-D, $(defs))\
    211226                $(if-expr defined($(target)_PCH_HDR)\
     
    253268 define TOOL_VCC141X86-PCH_COMPILE_CXX_CMDS
    254269        $(QUIET)$(RM) -f -- $($(target)_1_VCC_PCH_FILE) $($(target)_1_VCC_COMMON_OBJ_PDB)
    255         $(QUIET)$(TOOL_VCC141X86_CXX) -c -Yc\
     270        $(QUIET)$(TOOL_VCC141X86_SETUP_ENV)$(TOOL_VCC141X86_CXX) -c -Yc\
    256271                $(flags) $(qaddprefix sh,-I, $(incs)) $(qaddprefix sh,-D, $(defs))\
    257272               -Fp$($(target)_1_VCC_PCH_FILE) \
Note: See TracChangeset for help on using the changeset viewer.