Skip to content

Commit

Permalink
Force generation of MSYS Makefiles to prevent picking up MSVC.
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Sep 29, 2023
1 parent f92649b commit d54d15c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion deps/build_local.jl
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,12 @@ LLVM_DIR = joinpath(LLVM.artifact_dir, "lib", "cmake", "llvm")
# build and install
@info "Building" source_dir scratch_dir build_dir LLVM_DIR
cmake() do cmake_path
run(`$cmake_path -DLLVM_DIR=$(LLVM_DIR) -DCMAKE_INSTALL_PREFIX=$(scratch_dir) -B$(build_dir) -S$(source_dir)`)
config_opts = `-DLLVM_DIR=$(LLVM_DIR) -DCMAKE_INSTALL_PREFIX=$(scratch_dir)`
if Sys.iswindows()
# prevent picking up MSVC
config_opts = `$config_opts -G "MSYS Makefiles"`
end
run(`$cmake_path $cmke_opts -B$(build_dir) -S$(source_dir)`)
run(`$cmake_path --build $(build_dir) --target install`)
end

Expand Down

0 comments on commit d54d15c

Please sign in to comment.