Skip to content

Commit

Permalink
Set CMAKE_GENERATOR_TOOLSET
Browse files Browse the repository at this point in the history
  • Loading branch information
justsmth committed Jul 2, 2024
1 parent 65bb3bf commit 4d39048
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aws-lc-sys/builder/cmake_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ impl CmakeBuilder {

// Only needed when cross-compiling
if target_underscored() == "aarch64_pc_windows_msvc" {
cmake_cfg.generator("Ninja");
// https://stackoverflow.com/questions/64189111/how-to-use-clang-cl-llvm-with-vs2019-cmake
cmake_cfg.define("CMAKE_GENERATOR_TOOLSET", "ClangCL");
cmake_cfg.define("CMAKE_ASM_COMPILER_TARGET", "arm64-pc-windows-msvc");
cmake_cfg.define("CMAKE_ASM_COMPILER", "clang-cl");
}
Expand Down

0 comments on commit 4d39048

Please sign in to comment.