Changeset 3326 in kBuild
- Timestamp:
- Apr 17, 2020 7:10:19 PM (5 years ago)
- Location:
- trunk/kBuild/tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/tools/VCC141.kmk
r3325 r3326 79 79 PATH_TOOL_VCC141_BIN_QSH := $(requote sh,$(PATH_TOOL_VCC141_BIN)) 80 80 81 # 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. 82 ifndef PATH_TOOL_VCC141_HOST_DLL_BIN 83 PATH_TOOL_VCC141_HOST_DLL_BIN := $(PATH_TOOL_VCC141_HOST_BIN)/$(WINCMN_MAP_ARCH.$(KBUILD_HOST_ARCH)) 84 endif 85 ifndef PATH_TOOL_VCC141_DLL_BIN 86 ifneq ($(PATH_TOOL_VCC141_HOST_DLL_BIN),$(PATH_TOOL_VCC141_BIN)) 87 PATH_TOOL_VCC141_DLL_BIN := $(PATH_TOOL_VCC141_HOST_DLL_BIN) 88 endif 89 endif 90 81 91 PATH_TOOL_VCC141_LIB.amd64 ?= $(PATH_TOOL_VCC141)/lib/x64 82 92 PATH_TOOL_VCC141_LIB.arm32 ?= $(PATH_TOOL_VCC141)/lib/arm … … 113 123 ifneq ($(substr $(qdir un,$(PATH_TOOL_VCC141_BIN)),-3),64/) 114 124 TOOL_VCC141_KSUBMIT ?= kmk_builtin_kSubmit --64-bit 115 TOOL_VCC141_KSUBMIT_DD = $(TOOL_VCC141_KSUBMIT) --116 125 else 117 126 TOOL_VCC141_KSUBMIT ?= kmk_builtin_kSubmit --32-bit 118 TOOL_VCC141_KSUBMIT_DD = $(TOOL_VCC141_KSUBMIT) --119 127 endif 120 endif 121 endif 128 ifdef PATH_TOOL_VCC141_DLL_BIN 129 TOOL_VCC141_KSUBMIT := $(TOOL_VCC141_KSUBMIT) --prepend "PATH=$(requote shell-in-dq,$(PATH_TOOL_VCC141_DLL_BIN));" 130 endif 131 TOOL_VCC141_KSUBMIT_DD := $(TOOL_VCC141_KSUBMIT) -- 132 endif 133 endif 134 ifdef PATH_TOOL_VCC141_DLL_BIN 135 TOOL_VCC141_SETUP_ENV := $(REDIRECT) --prepend "PATH=$(requote shell-in-dq,$(PATH_TOOL_VCC141_DLL_BIN));" --$(SP) 136 ifndef TOOL_VCC141_KSUBMIT_DD 137 TOOL_VCC141_KSUBMIT_DD := $(TOOL_VCC141_SETUP_ENV) 138 endif 139 endif 140 122 141 123 142 ## Helper for finding rc.exe and mt.exe in the SDK. 124 TOOL_VCC141_FN_FIND_SDK_TOOL_SUB = $(eval $3 := $( firstfile\143 TOOL_VCC141_FN_FIND_SDK_TOOL_SUB = $(eval $3 := $(qfirstfile sh,\ 125 144 $(if-expr defined(PATH_SDK_WINSDK10_BIN) , $(qwildcard ,$(PATH_SDK_WINSDK10_BIN)/$2)) \ 126 145 $(if-expr defined(PATH_SDK_WINPSDK71_BIN), $(qwildcard ,$(PATH_SDK_WINPSDK71_BIN)/$2)) \ … … 209 228 else 210 229 define TOOL_VCC141_COMPILE_C_CMDS 211 $(QUIET)$(TOOL_VCC141_ CC) -c\230 $(QUIET)$(TOOL_VCC141_SETUP_ENV) $(TOOL_VCC141_CC) -c\ 212 231 $(flags) $(qaddprefix sh,-I, $(incs)) $(qaddprefix sh,-D, $(defs))\ 213 232 -Fd$(outbase)-obj.pdb \ … … 251 270 else 252 271 define TOOL_VCC141_COMPILE_CXX_CMDS 253 $(QUIET)$(TOOL_VCC141_ CXX) -c\272 $(QUIET)$(TOOL_VCC141_SETUP_ENV) $(TOOL_VCC141_CXX) -c\ 254 273 $(flags) $(qaddprefix sh,-I, $(incs)) $(qaddprefix sh,-D, $(defs))\ 255 274 $(if-expr defined($(target)_PCH_HDR)\ … … 297 316 define TOOL_VCC141-PCH_COMPILE_CXX_CMDS 298 317 $(QUIET)$(RM) -f -- $($(target)_1_VCC_PCH_FILE) $($(target)_1_VCC_COMMON_OBJ_PDB) 299 $(QUIET)$(TOOL_VCC141_ CXX) -c -Yc\318 $(QUIET)$(TOOL_VCC141_SETUP_ENV) $(TOOL_VCC141_CXX) -c -Yc\ 300 319 $(flags) $(qaddprefix sh,-I, $(incs)) $(qaddprefix sh,-D, $(defs))\ 301 320 -Fp$($(target)_1_VCC_PCH_FILE) \ -
trunk/kBuild/tools/VCC141X86.kmk
r3325 r3326 54 54 endif 55 55 PATH_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. 58 ifndef PATH_TOOL_VCC141X86_DLL_BIN 59 ifneq ($(PATH_TOOL_VCC141_HOST_DLL_BIN),$(PATH_TOOL_VCC141X86_BIN)) 60 PATH_TOOL_VCC141X86_DLL_BIN := $(PATH_TOOL_VCC141_HOST_DLL_BIN) 61 endif 62 endif 56 63 57 64 ifndef PATH_TOOL_VCC141X86_LIB … … 90 97 ifneq ($(substr $(qdir un,$(PATH_TOOL_VCC141X86_BIN)),-3),64/) 91 98 TOOL_VCC141X86_KSUBMIT ?= kmk_builtin_kSubmit --64-bit 92 TOOL_VCC141X86_KSUBMIT_DD = $(TOOL_VCC141X86_KSUBMIT) --93 99 else 94 100 TOOL_VCC141X86_KSUBMIT ?= kmk_builtin_kSubmit --32-bit 95 TOOL_VCC141X86_KSUBMIT_DD = $(TOOL_VCC141X86_KSUBMIT) --96 101 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 107 endif 108 ifdef 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) 97 112 endif 98 113 endif … … 165 180 else 166 181 define TOOL_VCC141X86_COMPILE_C_CMDS 167 $(QUIET)$(TOOL_VCC141X86_ CC) -c\182 $(QUIET)$(TOOL_VCC141X86_SETUP_ENV)$(TOOL_VCC141X86_CC) -c\ 168 183 $(flags) $(qaddprefix sh,-I, $(incs)) $(qaddprefix sh,-D, $(defs))\ 169 184 -Fd$(outbase)-obj.pdb \ … … 207 222 else 208 223 define TOOL_VCC141X86_COMPILE_CXX_CMDS 209 $(QUIET)$(TOOL_VCC141X86_ CXX) -c\224 $(QUIET)$(TOOL_VCC141X86_SETUP_ENV)$(TOOL_VCC141X86_CXX) -c\ 210 225 $(flags) $(qaddprefix sh,-I, $(incs)) $(qaddprefix sh,-D, $(defs))\ 211 226 $(if-expr defined($(target)_PCH_HDR)\ … … 253 268 define TOOL_VCC141X86-PCH_COMPILE_CXX_CMDS 254 269 $(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\ 256 271 $(flags) $(qaddprefix sh,-I, $(incs)) $(qaddprefix sh,-D, $(defs))\ 257 272 -Fp$($(target)_1_VCC_PCH_FILE) \
Note:
See TracChangeset
for help on using the changeset viewer.