소스 검색

Add -march option to clang call for llvm target

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

+ 3 - 0
compiler/llvm/agllvm.pas

@@ -1601,6 +1601,9 @@ implementation
         if fputypestrllvm[current_settings.fputype]<>'' then
           optstr:=optstr+' -m'+fputypestrllvm[current_settings.fputype];
 
+        if cputypestr[current_settings.cputype]<>'' then
+          optstr:=optstr+' -march='+cputypestr[current_settings.cputype];
+
         replace(result,'$OPT',optstr);
         inc(fnextpass);
       end;