File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 4848build  do 
4949  command  "git checkout #{ CRYSTAL_SHA1 }  ,  cwd : project_dir 
5050
51+   original_CXXFLAGS_env  =  env [ "CXXFLAGS" ] . dup 
52+   env [ "CXXFLAGS" ]  =  original_CXXFLAGS_env  + " -target x86_64-apple-darwin" 
53+ 
5154  mkdir  "#{ project_dir }  
5255  make  "deps" ,  env : env 
5356  mkdir  ".build" 
7174
7275  # Compile for ARM64. Apple's clang only understands arm64, LLVM uses aarch64, 
7376  # 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" 
7578  make  "deps" ,  env : env 
7679
7780  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