mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-17 08:21:25 -07:00
@@ -519,7 +519,7 @@ gb_global TargetMetrics target_darwin_amd64 = {
|
||||
gb_global TargetMetrics target_darwin_arm64 = {
|
||||
TargetOs_darwin,
|
||||
TargetArch_arm64,
|
||||
8, 8, 8, 16,
|
||||
8, 8, 16, 16,
|
||||
str_lit("arm64-apple-macosx"), // NOTE: Changes during initialization based on build flags.
|
||||
str_lit("e-m:o-i64:64-i128:128-n32:64-S128"),
|
||||
};
|
||||
|
||||
+1
-1
@@ -275,7 +275,7 @@ gb_internal i64 lb_alignof(LLVMTypeRef type) {
|
||||
case LLVMIntegerTypeKind:
|
||||
{
|
||||
unsigned w = LLVMGetIntTypeWidth(type);
|
||||
return gb_clamp((w + 7)/8, 1, build_context.ptr_size);
|
||||
return gb_clamp((w + 7)/8, 1, build_context.max_align);
|
||||
}
|
||||
case LLVMHalfTypeKind:
|
||||
return 2;
|
||||
|
||||
Reference in New Issue
Block a user