Skip to content

Commit

Permalink
Fix datalayout for osx-arm-64 (#8449)
Browse files Browse the repository at this point in the history
  • Loading branch information
abadams authored Oct 29, 2024
1 parent 1653c16 commit 402a056
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/LLVM_Runtime_Linker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,11 @@ llvm::DataLayout get_data_layout_for_target(Target target) {
if (target.os == Target::IOS) {
return llvm::DataLayout("e-m:o-i64:64-i128:128-n32:64-S128-Fn32");
} else if (target.os == Target::OSX) {
#if LLVM_VERSION >= 200
return llvm::DataLayout("e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-n32:64-S128-Fn32");
#else
return llvm::DataLayout("e-m:o-i64:64-i128:128-n32:64-S128-Fn32");
#endif
} else if (target.os == Target::Windows) {
return llvm::DataLayout("e-m:w-p:64:64-i32:32-i64:64-i128:128-n32:64-S128-Fn32");
} else {
Expand Down

0 comments on commit 402a056

Please sign in to comment.