Changeset 3637


Ignore:
Timestamp:
Nov 2, 2024, 2:54:01 AM (12 days ago)
Author:
bird
Message:

Config.kmk,Makefile.kmk,src/misc/Makefile.kmk: Build adjustments for KBUILD_NEW_VCC (VC++ 2022).

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r3600 r3637  
    126126# Not all compiler tools currently do the same quoting of DEFS, so here's a
    127127# temporary workaround.
    128 ifn1of ($(KBUILD_TARGET), win)
     128if "$(KBUILD_TARGET)" != "win" || defined(KBUILD_NEW_VCC)
    129129 TMP_QUOTE_SLASH :=
    130130else
     
    241241else if1of ($(KBUILD_TARGET), win nt)
    242242 ifdef KBUILD_NEW_VCC
    243   TEMPLATE_BIN_TOOL             = VCC142
    244   TEMPLATE_BIN_TOOL.x86         = VCC142X86
    245   TEMPLATE_BIN_TOOL.amd64       = VCC142AMD64
     243  TEMPLATE_BIN_TOOL             = VCC143
     244  TEMPLATE_BIN_TOOL.x86         = VCC143X86
     245  TEMPLATE_BIN_TOOL.amd64       = VCC143AMD64
    246246 else
    247247  TEMPLATE_BIN_TOOL             = VCC100
     
    249249  TEMPLATE_BIN_TOOL.amd64       = VCC100AMD64
    250250 endif
     251 TEMPLATE_BIN_TOOL.arm64        = VCC143ARM64
    251252 TEMPLATE_BIN_DEFS              = WINDOWS32 _CONSOLE __WIN__ _CRT_SECURE_NO_DEPRECATE _CRT_NONSTDC_NO_WARNINGS
    252253 TEMPLATE_BIN_DEFS.x86          = WIN32 __WIN32__
     
    262263 ifdef KBUILD_NEW_VCC
    263264  ifdef KBUILD_WITH_STATIC_MSVCRT
    264    TEMPLATE_BIN_SDKS            = WINPSDK71 WINSDK10-UCRT-STATIC
     265   TEMPLATE_BIN_SDKS            = WINSDK10-UM WINSDK10-UCRT-STATIC
    265266   TEMPLATE_BIN_CFLAGS         += -MT
    266267   TEMPLATE_BIN_LIBS            = \
    267         $(PATH_TOOL_$(TEMPLATE_BIN_TOOL)_LIB)/vcruntime.lib \
    268         $(PATH_TOOL_$(TEMPLATE_BIN_TOOL)_LIB)/oldnames.lib \
    269         $(PATH_TOOL_$(TEMPLATE_BIN_TOOL)_LIB)/libcmt.lib \
    270         $(PATH_TOOL_$(TEMPLATE_BIN_TOOL)_LIB)/libcpmt.lib
     268        $(PATH_TOOL_$(TEMPLATE_BIN_TOOL.$(KBUILD_TARGET_ARCH))_LIB)/vcruntime.lib \
     269        $(PATH_TOOL_$(TEMPLATE_BIN_TOOL.$(KBUILD_TARGET_ARCH))_LIB)/oldnames.lib \
     270        $(PATH_TOOL_$(TEMPLATE_BIN_TOOL.$(KBUILD_TARGET_ARCH))_LIB)/libcmt.lib \
     271        $(PATH_TOOL_$(TEMPLATE_BIN_TOOL.$(KBUILD_TARGET_ARCH))_LIB)/libcpmt.lib
    271272  else
    272    TEMPLATE_BIN_SDKS            = WINPSDK71 WINSDK10-UCRT
     273   TEMPLATE_BIN_SDKS            = WINSDK10-UM WINSDK10-UCRT
    273274   TEMPLATE_BIN_CFLAGS         += -MD
    274275   TEMPLATE_BIN_LIBS            = \
    275         $(PATH_TOOL_$(TEMPLATE_BIN_TOOL)_LIB)/vcruntime.lib \
    276         $(PATH_TOOL_$(TEMPLATE_BIN_TOOL)_LIB)/oldnames.lib \
    277         $(PATH_TOOL_$(TEMPLATE_BIN_TOOL)_LIB)/msvcrt.lib
     276        $(PATH_TOOL_$(TEMPLATE_BIN_TOOL.$(KBUILD_TARGET_ARCH))_LIB)/vcruntime.lib \
     277        $(PATH_TOOL_$(TEMPLATE_BIN_TOOL.$(KBUILD_TARGET_ARCH))_LIB)/oldnames.lib \
     278        $(PATH_TOOL_$(TEMPLATE_BIN_TOOL.$(KBUILD_TARGET_ARCH))_LIB)/msvcrt.lib
    278279  endif
    279280 else ifeq ($(KBUILD_TYPE),profile)
  • trunk/Makefile.kmk

    r3614 r3637  
    7575
    7676if1of ($(KBUILD_TARGET), nt win)
     77 ifndef KBUILD_NEW_VCC
    7778kBuild_bin_SOURCES.$(KBUILD_TARGET) = \
    78         kBuild/bin/$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)/msvcr100.dll
     79        kBuild/bin/$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)/msvcr100.dll
     80 endif
    7981kBuild_bin_SOURCES.profile = \
    8082        D:/coding/kStuff/svn/trunk/out/win.$(KBUILD_TARGET_ARCH)/release/kStuff/bin/kPrf2.dll \
  • trunk/src/misc/Makefile.kmk

    r3538 r3637  
    5050PROGRAMS.win += $1
    5151$1_TEMPLATE   = EXECWRAPPER
    52 $1_DEFS       = TARGET_EXE_NAME=\"$2.exe\"
     52$1_DEFS       = TARGET_EXE_NAME=$(TMP_QUOTE_SLASH)"$2.exe$(TMP_QUOTE_SLASH)"
    5353endef
    5454
Note: See TracChangeset for help on using the changeset viewer.