Skip to content

Commit

Permalink
misc: updates to build llvm 8.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
baszalmstra committed Aug 22, 2020
1 parent 0fec676 commit 50a2774
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions build.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$llvm_version = "7.1.0"
$llvm_version = "8.0.1"

# Check if scoop is installed
if (!(Get-Command "scoop" -errorAction SilentlyContinue)) {
Expand Down Expand Up @@ -34,7 +34,16 @@ function build-msvc {

# Construct a build directory and run cmake
New-Item -ItemType "directory" -Force -Path $build_dir
cmake -S "$source_dir\llvm" -B $build_dir -G $msvc_cmake_generator -Thost=x64 -A x64 -DLLVM_ENABLE_PROJECTS="lld;clang" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$install_dir"
cmake `
-S "$source_dir\llvm" `
-B $build_dir `
-G $msvc_cmake_generator `
-Thost=x64 `
-A x64 `
-DLLVM_ENABLE_PROJECTS="lld;clang" `
-DCMAKE_BUILD_TYPE=Release `
-DCMAKE_INSTALL_PREFIX="$install_dir"
#-DLLVM_ENABLE_ASSERTIONS=ON

# Build the project
New-Item -ItemType "directory" -Force -Path $install_dir
Expand All @@ -50,5 +59,5 @@ function build-msvc {
Remove-Item $source_dir -Force
}

build-msvc "msvc15" "Visual Studio 15 2017"
build-msvc "msvc16" "Visual Studio 16 2019"
build-msvc "msvc15" "Visual Studio 15 2017"

0 comments on commit 50a2774

Please sign in to comment.