Browse Source

Add -march option to clang call for llvm target

git-svn-id: trunk@49475 -
pierre 4 years ago
parent
commit
aadcb00977
1 changed files with 3 additions and 0 deletions
  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;