- Timestamp:
- Feb 2, 2023 1:03:05 PM (2 years ago)
- Location:
- trunk/tools
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/kBuildTools/VBoxXGccAmd64LinuxGnu.kmk
r98108 r98443 35 35 PATH_TOOL_VBoxXGccAmd64LinuxGnu := $(lastword $(wildcard $(KBUILD_DEVTOOLS_HST)/x86_64-linux-gnu/*)) 36 36 ifeq ($(PATH_TOOL_VBoxXGccAmd64LinuxGnu),) 37 37 PATH_TOOL_VBoxXGccAmd64LinuxGnu := $(lastword $(sort $(wildcard $(KBUILD_DEVTOOLS_HST_ALT)/x86_64-linux-gnu/*))) 38 38 endif 39 39 endif … … 54 54 55 55 ifdef SLKRUNS 56 TOOL_VBoxXGccAmd64LinuxGnu_CC += -fmessage-length=057 TOOL_VBoxXGccAmd64LinuxGnu_CXX += -fmessage-length=056 TOOL_VBoxXGccAmd64LinuxGnu_CC += -fmessage-length=0 57 TOOL_VBoxXGccAmd64LinuxGnu_CXX += -fmessage-length=0 58 58 endif 59 59 -
trunk/tools/kBuildTools/VBoxXGccX86RedHatLinux.kmk
r98108 r98443 54 54 55 55 ifdef SLKRUNS 56 TOOL_VBoxXGccX86RedHatLinux_CC += -fmessage-length=057 TOOL_VBoxXGccX86RedHatLinux_CXX += -fmessage-length=056 TOOL_VBoxXGccX86RedHatLinux_CC += -fmessage-length=0 57 TOOL_VBoxXGccX86RedHatLinux_CXX += -fmessage-length=0 58 58 endif 59 59 -
trunk/tools/kBuildTools/VBoxXcode62.kmk
r98108 r98443 68 68 TOOL_VBoxXcode62_LD_SYSMOD ?= $(PATH_TOOL_VBoxXcode62_TOOLCHAIN_BIN_SLASH)clang++$(HOSTSUFF_EXE) 69 69 ifndef TOOL_VBoxXcode62_LDFLAGS.$(KBUILD_TARGET) 70 TOOL_VBoxXcode62_LDFLAGS.dll ?= -dynamiclib70 TOOL_VBoxXcode62_LDFLAGS.dll ?= -dynamiclib 71 71 else 72 TOOL_VBoxXcode62_LDFLAGS.dll ?= $(TOOL_VBoxXcode62_LDFLAGS.$(KBUILD_TARGET))72 TOOL_VBoxXcode62_LDFLAGS.dll ?= $(TOOL_VBoxXcode62_LDFLAGS.$(KBUILD_TARGET)) 73 73 endif 74 74 TOOL_VBoxXcode62_LDFLAGS.sysmod ?= -r … … 76 76 77 77 ifdef SLKRUNS 78 TOOL_VBoxXcode62_CC += -fmessage-length=079 TOOL_VBoxXcode62_CXX += -fmessage-length=080 TOOL_VBoxXcode62_OBJC += -fmessage-length=081 TOOL_VBoxXcode62_OBJCXX += -fmessage-length=078 TOOL_VBoxXcode62_CC += -fmessage-length=0 79 TOOL_VBoxXcode62_CXX += -fmessage-length=0 80 TOOL_VBoxXcode62_OBJC += -fmessage-length=0 81 TOOL_VBoxXcode62_OBJCXX += -fmessage-length=0 82 82 endif 83 83 … … 86 86 -E 'DEVELOPER_DIR=$(PATH_TOOL_VBoxXcode62)' \ 87 87 -E 'PATH=$(PATH_TOOL_VBoxXcode62)/usr/bin/:$(PATH_TOOL_VBoxXcode62)/Toolchains/XcodeDefault.xctoolchain/usr/bin:$(PATH)' \ 88 88 -- 89 89 TOOL_VBoxXcode62_ENV_SETUP_EXT ?= $(REDIRECT_EXT) \ 90 90 -E 'DEVELOPER_DIR=$(PATH_TOOL_VBoxXcode62)' \ 91 91 -E 'PATH=$(PATH_TOOL_VBoxXcode62)/usr/bin/:$(PATH_TOOL_VBoxXcode62)/Toolchains/XcodeDefault.xctoolchain/usr/bin:$(PATH)' \ 92 92 -- 93 93 94 94 # General Properties used by kBuild … … 112 112 TOOL_VBoxXcode62_OBJCFLAGS ?= 113 113 TOOL_VBoxXcode62_OBJCFLAGS.debug ?= -g 114 TOOL_VBoxXcode62_OBJCFLAGS.profile ?= -O2 #-g -pg115 TOOL_VBoxXcode62_OBJCFLAGS.release ?= -O2114 TOOL_VBoxXcode62_OBJCFLAGS.profile ?= -O2 #-g -pg 115 TOOL_VBoxXcode62_OBJCFLAGS.release ?= -O2 116 116 TOOL_VBoxXcode62_OBJCINCS ?= 117 117 TOOL_VBoxXcode62_OBJCDEFS ?= … … 148 148 # @param 2 The output filename sans suffix. 149 149 TOOL_VBoxXcode62_DEBUG_BUNDLE_FN = \ 150 151 150 $(1).dSYM/Contents/Info.plist \ 151 $(1).dSYM/Contents/Resources/DWARF/$(notdir $(1)) 152 152 153 153 ## … … 159 159 # does not care and only check for a symbol file in the DWARF 160 160 # directory with the same name as the debugged module. 161 TOOL_VBoxXcode62_DEBUG_INSTALL_FN = \162 163 164 165 166 167 161 TOOL_VBoxXcode62_DEBUG_INSTALL_FN = \ 162 $(3).dSYM/ \ 163 $(3).dSYM/Contents/ \ 164 $(3).dSYM/Contents/Resources/ \ 165 $(3).dSYM/Contents/Resources/DWARF/ \ 166 $(1).dSYM/Contents/Info.plist=>$(3).dSYM/Contents/Info.plist \ 167 $(1).dSYM/Contents/Resources/DWARF/$(notdir $(1))=>$(3).dSYM/Contents/Resources/DWARF/$(notdir $(3)) 168 168 169 169 … … 184 184 TOOL_VBoxXcode62_COMPILE_C_DEPORD = 185 185 ifdef KBUILD_USE_KOBJCACHE 186 TOOL_VBoxXcode62_COMPILE_C_USES_KOBJCACHE = 1187 TOOL_VBoxXcode62_COMPILE_C_OUTPUT = $(outbase).i188 define TOOL_VBoxXcode62_COMPILE_C_CMDS186 TOOL_VBoxXcode62_COMPILE_C_USES_KOBJCACHE = 1 187 TOOL_VBoxXcode62_COMPILE_C_OUTPUT = $(outbase).i 188 define TOOL_VBoxXcode62_COMPILE_C_CMDS 189 189 $(QUIET)$(TOOL_VBoxXcode62_ENV_SETUP) $(KOBJCACHE) -f $(outbase).koc -d $(PATH_OBJCACHE) -t $(bld_trg).$(bld_trg_arch) -p\ 190 190 --kObjCache-cpp $(outbase).i\ … … 199 199 - 200 200 %$(QUIET)$(APPEND) -n "$(dep)" "" "$(source):" "" 201 endef201 endef 202 202 else # !KBUILD_USE_KOBJCACHE 203 TOOL_VBoxXcode62_COMPILE_C_OUTPUT =204 define TOOL_VBoxXcode62_COMPILE_C_CMDS203 TOOL_VBoxXcode62_COMPILE_C_OUTPUT = 204 define TOOL_VBoxXcode62_COMPILE_C_CMDS 205 205 $(QUIET)$(TOOL_VBoxXcode62_ENV_SETUP) $(TOOL_VBoxXcode62_CC) -c\ 206 206 $(flags) $(qaddprefix sh,-I, $(incs)) $(qaddprefix sh,-D, $(defs))\ … … 209 209 $(abspath $(source)) 210 210 %$(QUIET)$(APPEND) -n "$(dep)" "" "$(source):" "" 211 endef211 endef 212 212 endif # !KUSE_OBJCACHE 213 213 … … 228 228 TOOL_VBoxXcode62_COMPILE_CXX_DEPORD = 229 229 ifdef KBUILD_USE_KOBJCACHE 230 TOOL_VBoxXcode62_COMPILE_CXX_USES_KOBJCACHE = 1231 TOOL_VBoxXcode62_COMPILE_CXX_OUTPUT = $(outbase).ii232 define TOOL_VBoxXcode62_COMPILE_CXX_CMDS230 TOOL_VBoxXcode62_COMPILE_CXX_USES_KOBJCACHE = 1 231 TOOL_VBoxXcode62_COMPILE_CXX_OUTPUT = $(outbase).ii 232 define TOOL_VBoxXcode62_COMPILE_CXX_CMDS 233 233 $(QUIET)$(TOOL_VBoxXcode62_ENV_SETUP) $(KOBJCACHE) -f $(outbase).koc -d $(PATH_OBJCACHE) -t $(bld_trg).$(bld_trg_arch) -p\ 234 234 --kObjCache-cpp $(outbase).ii\ … … 244 244 - 245 245 %$(QUIET)$(APPEND) -n "$(dep)" "" "$(source):" "" 246 endef246 endef 247 247 else # !KBUILD_USE_KOBJCACHE 248 TOOL_VBoxXcode62_COMPILE_CXX_OUTPUT =249 define TOOL_VBoxXcode62_COMPILE_CXX_CMDS248 TOOL_VBoxXcode62_COMPILE_CXX_OUTPUT = 249 define TOOL_VBoxXcode62_COMPILE_CXX_CMDS 250 250 $(QUIET)$(TOOL_VBoxXcode62_ENV_SETUP) $(TOOL_VBoxXcode62_CXX) -c\ 251 251 $(flags) $(qaddprefix sh,-I, $(incs)) $(qaddprefix sh,-D, $(defs))\ … … 255 255 $(abspath $(source)) 256 256 %$(QUIET)$(APPEND) -n "$(dep)" "" "$(source):" "" 257 endef257 endef 258 258 endif # !KBUILD_USE_KOBJCACHE 259 259 … … 274 274 TOOL_VBoxXcode62_COMPILE_OBJC_DEPORD = 275 275 ifdef KBUILD_USE_KOBJCACHE 276 TOOL_VBoxXcode62_COMPILE_OBJC_USES_KOBJCACHE = 1277 TOOL_VBoxXcode62_COMPILE_OBJC_OUTPUT = $(outbase).mi278 define TOOL_VBoxXcode62_COMPILE_OBJC_CMDS276 TOOL_VBoxXcode62_COMPILE_OBJC_USES_KOBJCACHE = 1 277 TOOL_VBoxXcode62_COMPILE_OBJC_OUTPUT = $(outbase).mi 278 define TOOL_VBoxXcode62_COMPILE_OBJC_CMDS 279 279 $(QUIET)$(TOOL_VBoxXcode62_ENV_SETUP) $(KOBJCACHE) -f $(outbase).koc -d $(PATH_OBJCACHE) -t $(bld_trg).$(bld_trg_arch) -p\ 280 280 --kObjCache-cpp $(outbase).ii\ … … 289 289 - 290 290 %$(QUIET)$(APPEND) -n "$(dep)" "" "$(source):" "" 291 endef291 endef 292 292 else # !KBUILD_USE_KOBJCACHE 293 TOOL_VBoxXcode62_COMPILE_OBJC_OUTPUT =294 define TOOL_VBoxXcode62_COMPILE_OBJC_CMDS293 TOOL_VBoxXcode62_COMPILE_OBJC_OUTPUT = 294 define TOOL_VBoxXcode62_COMPILE_OBJC_CMDS 295 295 $(QUIET)$(TOOL_VBoxXcode62_ENV_SETUP) $(TOOL_VBoxXcode62_OBJC) -c\ 296 296 $(flags) $(qaddprefix sh,-I, $(incs)) $(qaddprefix sh,-D, $(defs))\ … … 299 299 $(abspath $(source)) 300 300 %$(QUIET)$(APPEND) -n "$(dep)" "" "$(source):" "" 301 endef301 endef 302 302 endif # !KBUILD_USE_KOBJCACHE 303 303 … … 318 318 TOOL_VBoxXcode62_COMPILE_OBJCXX_DEPORD = 319 319 ifdef KBUILD_USE_KOBJCACHE 320 TOOL_VBoxXcode62_COMPILE_OBJCXX_USES_KOBJCACHE = 1321 TOOL_VBoxXcode62_COMPILE_OBJCXX_OUTPUT = $(outbase).mii322 define TOOL_VBoxXcode62_COMPILE_OBJCXX_CMDS320 TOOL_VBoxXcode62_COMPILE_OBJCXX_USES_KOBJCACHE = 1 321 TOOL_VBoxXcode62_COMPILE_OBJCXX_OUTPUT = $(outbase).mii 322 define TOOL_VBoxXcode62_COMPILE_OBJCXX_CMDS 323 323 $(QUIET)$(TOOL_VBoxXcode62_ENV_SETUP) $(KOBJCACHE) -f $(outbase).koc -d $(PATH_OBJCACHE) -t $(bld_trg).$(bld_trg_arch) -p\ 324 324 --kObjCache-cpp $(outbase).mii\ … … 333 333 - 334 334 %$(QUIET)$(APPEND) -n "$(dep)" "" "$(source):" "" 335 endef335 endef 336 336 else # !KBUILD_USE_KOBJCACHE 337 TOOL_VBoxXcode62_COMPILE_OBJCXX_OUTPUT =338 define TOOL_VBoxXcode62_COMPILE_OBJCXX_CMDS337 TOOL_VBoxXcode62_COMPILE_OBJCXX_OUTPUT = 338 define TOOL_VBoxXcode62_COMPILE_OBJCXX_CMDS 339 339 $(QUIET)$(TOOL_VBoxXcode62_ENV_SETUP) $(TOOL_VBoxXcode62_OBJCXX) -c\ 340 340 $(flags) $(qaddprefix sh,-I, $(incs)) $(qaddprefix sh,-D, $(defs))\ … … 343 343 $(abspath $(source)) 344 344 %$(QUIET)$(APPEND) -n "$(dep)" "" "$(source):" "" 345 endef345 endef 346 346 endif # !KBUILD_USE_KOBJCACHE 347 347 -
trunk/tools/kBuildUnits/vboximportchecker.kmk
r98108 r98443 37 37 # Helper for expanding certain variables while assigning. 38 38 define def_unit_vboximportchecker_internal_expand_twice 39 $(target)_POST_CMDS += $$(if-expr "$$(tool_do)" != "LINK_LIBRARY",$$(NLTAB)$$(VBOX_RTLDRCHECKIMPORTS) -q -p "$$(KBUILD_DEVTOOLS)/$(bld_trg).$(bld_trg_arch)/exports/$$($(target)_2_VBOX_IMPORT_CHECKER)" $$(out),)39 $(target)_POST_CMDS += $$(if-expr "$$(tool_do)" != "LINK_LIBRARY",$$(NLTAB)$$(VBOX_RTLDRCHECKIMPORTS) -q -p "$$(KBUILD_DEVTOOLS)/$(bld_trg).$(bld_trg_arch)/exports/$$($(target)_2_VBOX_IMPORT_CHECKER)" $$(out),) 40 40 endef 41 41 42 42 define def_unit_vboximportchecker_target_pre 43 # Do not apply to ASAN builds as it requires newere DLLs.44 ifneq ($(KBUILD_TYPE),asan)43 # Do not apply to ASAN builds as it requires newere DLLs. 44 ifneq ($(KBUILD_TYPE),asan) 45 45 46 # Set pass 2 variable (simpler) and act on it. 47 $(target)_2_VBOX_IMPORT_CHECKER := $(evalcall def_fn_prop_get_first_defined,VBOX_IMPORT_CHECKER) 48 ifdef $(target)_2_VBOX_IMPORT_CHECKER 49 $(target)_LNK_ORDERDEPS += $(VBOX_RTLDRCHECKIMPORTS) 50 $(eval $(def_unit_vboximportchecker_internal_expand_twice)) 46 # Set pass 2 variable (simpler) and act on it. 47 $(target)_2_VBOX_IMPORT_CHECKER := $(evalcall def_fn_prop_get_first_defined,VBOX_IMPORT_CHECKER) 48 ifdef $(target)_2_VBOX_IMPORT_CHECKER 49 $(target)_LNK_ORDERDEPS += $(VBOX_RTLDRCHECKIMPORTS) 50 $(eval $(def_unit_vboximportchecker_internal_expand_twice)) 51 endif 52 51 53 endif 52 53 endif54 54 55 55 endef
Note:
See TracChangeset
for help on using the changeset viewer.