File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 48
48
build do
49
49
command "git checkout #{ CRYSTAL_SHA1 } " , cwd : project_dir
50
50
51
+ original_CXXFLAGS_env = env [ "CXXFLAGS" ] . dup
52
+ env [ "CXXFLAGS" ] = original_CXXFLAGS_env + " -target x86_64-apple-darwin"
53
+
51
54
mkdir "#{ project_dir } /deps"
52
55
make "deps" , env : env
53
56
mkdir ".build"
71
74
72
75
# Compile for ARM64. Apple's clang only understands arm64, LLVM uses aarch64,
73
76
# so we need to sub out aarch64 in our calls to Apple tools
74
- env [ "CXXFLAGS" ] << " -target arm64-apple-darwin"
77
+ env [ "CXXFLAGS" ] = original_CXXFLAGS_env + " -target arm64-apple-darwin"
75
78
make "deps" , env : env
76
79
77
80
make "crystal stats=true release=true target=aarch64-apple-darwin FLAGS=\" #{ crflags } \" CRYSTAL_CONFIG_TARGET=aarch64-apple-darwin CRYSTAL_CONFIG_LIBRARY_PATH= O=#{ output_path } " , env : env
You can’t perform that action at this time.
0 commit comments