Skip to content

Commit

Permalink
Build with clang by default
Browse files Browse the repository at this point in the history
Use the `-msvc` flag to try building with normal cl
  • Loading branch information
krx committed Jul 13, 2017
1 parent e5e6540 commit 2f717b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build.ps1
@@ -1,5 +1,5 @@
param (
[switch] $clang
[switch] $msvc
)

$DIR = $PSScriptRoot
Expand All @@ -15,9 +15,9 @@ mkdir "${DIR}\build"
cd "${DIR}\build"

"Creating Makefiles"
$CMAKE_OPTS = ""
if ($clang) {
$CMAKE_OPTS += "-D CLANGCL:BOOL=TRUE -T LLVM-vs2014"
$CMAKE_OPTS = "-D CLANGCL:BOOL=TRUE -T LLVM-vs2014"
if ($msvc) {
$CMAKE_OPTS = ""
}

Start-Process cmake -NoNewWindow -Wait -ArgumentList "$CMAKE_OPTS .."
Expand Down

0 comments on commit 2f717b4

Please sign in to comment.