浏览代码

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;