Commit Graph

87 Commits

Author SHA1 Message Date
dmex c107a17d0d Improve clang-lld and build tooling
Add clang-lld CMake toolchains for x86/x64/ARM64 and update the shared CMake/MSVC logic to handle lld-link limitations, optional clang speculative load hardening, host-architecture tool selection, and user-mode defines that match Common.User.props.

Refresh the Windows build scripts to use the newer MSBuild invocation flags, support CI/binlog/low-priority options, allow build target overrides, switch CustomBuildTool publishing to dotnet msbuild, reorder init so tools build before third-party deps, and let build_zsign sign a single file or an entire output tree.
2026-09-24 14:32:21 +10:00
dmex a571c6bc19 Build and bug fixes 2026-06-15 05:33:51 +10:00
dmex e6120caa36 Update CustomBuildTool 2026-05-31 14:13:33 +10:00
dmex 980dc701db Update commands.cmake 2026-05-24 09:08:01 +10:00
dmex 1a233c4ef0 Add language guard and fix CMake forwarding C/C++ build options to MASM 2026-05-24 08:41:55 +10:00
dmex 43186f04d8 Scope /Gz to C/C++ and add nativesession.c
Use a generator expression ($<$<COMPILE_LANGUAGE:C,CXX>:/Gz>) so the MSVC /Gz (stdcall) compiler flag is applied only for C and C++ compilations. This avoids injecting the option for other languages.
2026-05-18 15:11:04 +10:00
dmex cdbacaec93 Guard MSVC-specific target flags
Wrap MSVC-only compile/link options in MSVC() checks to avoid passing MSVC-specific flags to non-MSVC toolchains. Make /NATVIS conditional on MSVC, add -mwindows for non-MSVC builds of UM_LIB/UM_BIN, restrict SI_WITH_PREFAST to MSVC, and fix a comment spelling for __stdcall.
2026-04-04 03:19:26 +11:00
Johnny Shaw c385128b58 cmake clang improve docs around standards flags 2026-04-01 07:18:46 -06:00
Johnny Shaw 12fef8faf7 cmake msvc toolchain comment cleanup 2026-04-01 07:16:03 -06:00
Johnny Shaw 1fb2448e64 cmake ensure spectre libs 2026-03-31 22:52:41 -06:00
Johnny Shaw dde0f8f46a cmake update clang standards 2026-03-31 22:25:55 -06:00
dmex fd1f6d9077 Update plugin build from using sdk copies of phnt headers to the actual phnt directory 2026-03-13 02:33:55 +11:00
dmex 2521ec49d6 CustomBuildTool: Add CMake SDK linking, vcvars fix, and -cmake flag
CMake: set ARCHIVE_OUTPUT_DIRECTORY for targets and add SDK/thirdparty linking for plugin targets; expose SI_PLATFORM_SDK_LIB for platform-specific SDK lib paths. Tools: pass a -cmake flag from si_sdkbuild and handle -cmake in CustomBuildTool. CustomBuildTool: only show build stats when verbose and improve ExecuteCMakeCommand vcvarsall detection by preferring VCINSTALLDIR, falling back to a VS instance, and returning an error if vcvarsall is not found. Zip: simplify compression column output and mark the file parameter as unused.
2026-02-23 16:59:44 +11:00
dmex 49f2cb125d Update commands.cmake 2026-02-01 11:54:55 +11:00
dmex 9ea3286a3f CustomBuildTool: Add -check_msvc, -install_msvc, -cmake-bin 2026-02-01 11:35:19 +11:00
dmex a03b8eb115 Update clang-msvc.cmake 2026-02-01 00:09:59 +11:00
dmex 951662d32d Update commands.cmake 2026-02-01 00:09:56 +11:00
dmex 0d235c2e86 Update clang-msvc.cmake 2026-01-31 17:52:26 +11:00
dmex 169e52cacd Update commands.cmake 2026-01-31 17:52:22 +11:00
Johnny Shaw 0032535836 cmake include pdata in pdb 2026-01-27 15:04:07 -07:00
Johnny Shaw e924b53e16 cmake fix natvis 2025-10-11 09:24:21 -06:00
Johnny Shaw be58b46195 cmake clang signret flag 2025-09-08 19:41:31 -06:00
Johnny Shaw b42045c1e7 cmake fix clang-cl flag removal 2025-09-08 19:40:38 -06:00
Johnny Shaw 309f509aad cmake add quality of life compiler flags 2025-09-08 19:40:31 -06:00
Johnny Shaw d7368d08e7 fix cmake build 2025-09-07 08:55:13 -06:00
Johnny Shaw 4c8000db03 fix cmake build 2025-09-07 08:39:52 -06:00
Johnny Shaw 48be98e038 cmake toolchain msvc adjust guard flags 2025-08-25 13:57:29 -06:00
Johnny Shaw d5479aa979 cmake prefast disable kernel plugins 2025-08-14 15:30:46 -06:00
Johnny Shaw 4e5ca13aab cmake commands specify subsystem version 2025-08-13 21:48:02 -06:00
Johnny Shaw 9ad6637033 cmake prefast minor cleanup 2025-08-11 10:55:35 -06:00
Johnny Shaw d8f21d016e clang-msvc widen pointer-cast suppression 2025-08-10 23:50:22 -06:00
Johnny Shaw 208223d57e clang-msvc narrow pointer-cast suppression 2025-08-10 23:17:54 -06:00
Johnny Shaw 99abadf01e clang-msvc suppress void-pointer-to-int-cast for CI 2025-08-10 23:07:39 -06:00
Johnny Shaw f8be07a06d clang-msvc suppress int-to-void-pointer-cast for CI 2025-08-10 23:03:17 -06:00
Johnny Shaw 0686ebd8fa clang-msvc remove signret CFG for CI 2025-08-10 22:50:30 -06:00
Johnny Shaw 247a2db8ab clang-msvc add compat flags 2025-08-10 22:18:26 -06:00
Johnny Shaw 31646306aa clang-msvc fix x86 build 2025-08-10 22:02:32 -06:00
Johnny Shaw 9429d6da1d clang-msvc fix arm64 build 2025-08-10 21:44:13 -06:00
Johnny Shaw 14539ab4e4 cmake toolchain override and add static link flags 2025-08-10 21:43:02 -06:00
Johnny Shaw e0828d35e0 clang-msvc indent cleanup 2025-08-10 13:29:21 -06:00
Johnny Shaw e58582e513 clang-msvc misc cleanup and move isn support 2025-08-10 13:07:33 -06:00
Johnny Shaw 6822005883 clang-msvc move pointer-sign to project-level 2025-08-10 13:00:14 -06:00
Johnny Shaw ec80146a36 clang-msvc move visibility to project-level 2025-08-10 12:48:21 -06:00
Johnny Shaw 42e87f6a62 clang-msvc fix unused-function 2025-08-10 12:38:31 -06:00
Johnny Shaw e6111cd648 clang-msvc move c23-extensions to project-level 2025-08-10 11:59:15 -06:00
Johnny Shaw 12d3203cb1 clang-msvc reclassify unknown-pragmas 2025-08-10 11:49:27 -06:00
Johnny Shaw 1bb3cd9a48 clang-msvc fix macro-redefined _MM_HINT 2025-08-10 11:04:58 -06:00
Johnny Shaw 26a1950a3f clang-msvc order Microsoft required diagnostics 2025-08-10 00:05:18 -06:00
Johnny Shaw d1a6b69ebc clang-msvc move project-level diagnostics 2025-08-10 00:03:39 -06:00
Johnny Shaw d641a391fa clang-msvc reclassify warnings 2025-08-09 23:56:50 -06:00