소스 검색

Fix compilation for x86_64 llvm variant

git-svn-id: trunk@49477 -
pierre 4 년 전
부모
커밋
04ebdf8df8
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      compiler/llvm/agllvm.pas

+ 3 - 1
compiler/llvm/agllvm.pas

@@ -1601,7 +1601,9 @@ implementation
         if fputypestrllvm[current_settings.fputype]<>'' then
           optstr:=optstr+' -m'+fputypestrllvm[current_settings.fputype];
 
-        if cputypestr[current_settings.cputype]<>'' then
+        { restrict march to aarch64 for now to fix x86_64 compilation failure }
+        if (cputypestr[current_settings.cputype]<>'')
+           and (target_info.system in [system_aarch64_darwin, system_aarch64_linux]) then
           optstr:=optstr+' -march='+cputypestr[current_settings.cputype];
 
         replace(result,'$OPT',optstr);