Windows VS 2022 Build Support #27
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Windows VS 2022 Build Support
if (WIN32) find_library( DIA_GUIDS_LIB NAMES diaguids PATHS "$ENV{VSINSTALLDIR}/DIA SDK/lib/amd64" "$ENV{ProgramFiles}/Microsoft Visual Studio/2022/Community/DIA SDK/lib/amd64" "$ENV{ProgramFiles}/Microsoft Visual Studio/2022/BuildTools/DIA SDK/lib/amd64" "$ENV{ProgramFiles\(x86\)}/Microsoft Visual Studio/2022/Community/DIA SDK/lib/amd64" "$ENV{ProgramFiles\(x86\)}/Microsoft Visual Studio/2022/BuildTools/DIA SDK/lib/amd64" NO_DEFAULT_PATH ) if (DIA_GUIDS_LIB) list(APPEND llvm_libs ${DIA_GUIDS_LIB}) endif() endif() add_library(dbgir STATIC DebugIR.cpp) if (NOT LLVM_ENABLE_RTTI) target_compile_options( dbgir PUBLIC $<$<CXX_COMPILER_ID:MSVC>:/GR-> $<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-fno-rtti> ) endif() if (MSVC) set(DEBUGIR_WARN_FLAGS /W4 /permissive- ) else() set(DEBUGIR_WARN_FLAGS -Wall -Werror -pedantic -Wextra -Wno-unknown-pragmas -Wno-unused-parameter ) endif()LLVMDebugInfoPDBnow pullsdiaguids.libfrom the installed VS2022 Build Tools.cmake -DLLVM_DIR="C:/IRvana/LLVM-18.1.5/lib/cmake/llvm" -DLINK_LLVM_SHARED=OFF -DCMAKE_BUILD_TYPE=Release ..cmake --build . --config Release