Skip to content

Commit

Permalink
Revert and try
Browse files Browse the repository at this point in the history
  • Loading branch information
lerno committed Jul 4, 2024
1 parent b70b3f1 commit f3a0eeb
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
20 changes: 20 additions & 0 deletions install.bat
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,23 @@ if /i "%BUILD_MASTER%" == "true" (
move %WORKING_DIR%\llvm-project-%LLVM_VERSION%.src %WORKING_DIR%\llvm-project
dir %WORKING_DIR%
)

if "%CONFIGURATION%" == "Debug" goto dbg
goto :eof

:: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

:: on Debug builds:
:: - patch llvm-config/CMakeLists.txt to always build and install llvm-config
:: - patch AddLLVM.cmake to also install PDBs on Debug builds

:dbg

echo "Patch debug build"
echo set_target_properties(llvm-config PROPERTIES EXCLUDE_FROM_ALL FALSE) >> %WORKING_DIR%\llvm-project\llvm\tools\llvm-config\CMakeLists.txt
echo install(TARGETS llvm-config RUNTIME DESTINATION bin) >> %WORKING_DIR%\llvm-project\llvm\tools\llvm-config\CMakeLists.txt

perl pdb-patch.pl %WORKING_DIR%\llvm-project\llvm\cmake\modules\AddLLVM.cmake

goto :eof

4 changes: 2 additions & 2 deletions set-env.bat
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ goto :loop
:: essential (whoever needs tools, can just download a Release build)

:dbg
set CONFIGURATION=RelWithDebInfo
set CONFIGURATION=Debug
set DEBUG_SUFFIX=-dbg
set LLVM_CMAKE_CONFIGURE_EXTRA_FLAGS=-DLLVM_ENABLE_EXPENSIVE_CHECKS=ON -DLLVM_ENABLE_ASSERTIONS=ON
set LLVM_CMAKE_CONFIGURE_EXTRA_FLAGS=-DLLVM_OPTIMIZED_TABLEGEN=ON -DLLVM_BUILD_TOOLS=ON -DLLVM_ENABLE_ASSERTIONS=ON
set CLANG_CMAKE_CONFIGURE_EXTRA_FLAGS=-DCLANG_BUILD_TOOLS=OFF
shift
goto :loop
Expand Down

0 comments on commit f3a0eeb

Please sign in to comment.