Skip to content

Commit

Permalink
Add arm64ec support
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Jan 11, 2025
1 parent ecee94e commit 76a8484
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/compiler/clang.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ impl Clang {
"i586" | "i686" => "X86",
"x86_64" => "AMD64",
"aarch64" => "ARM64",
"arm64ec" => "ARM64EC",
_ => target_arch,
};

Expand All @@ -283,6 +284,8 @@ set(CMAKE_C_COMPILER clang CACHE FILEPATH "")
set(CMAKE_CXX_COMPILER clang++ CACHE FILEPATH "")
set(CMAKE_LINKER lld-link CACHE FILEPATH "")
set(CMAKE_RC_COMPILER llvm-rc CACHE FILEPATH "")
set(CMAKE_C_COMPILER_TARGET {target} CACHE STRING "")
set(CMAKE_CXX_COMPILER_TARGET {target} CACHE STRING "")
set(COMPILE_FLAGS
--target={target_no_vendor}
Expand Down
1 change: 1 addition & 0 deletions src/compiler/clang_cl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ impl<'a> ClangCl<'a> {
"i586" | "i686" => "X86",
"x86_64" => "AMD64",
"aarch64" => "ARM64",
"arm64ec" => "ARM64EC",
_ => target_arch,
};
let xwin_arch = match target_arch {
Expand Down

0 comments on commit 76a8484

Please sign in to comment.