Browse Source

- removed "-enable-fp-mad" llc option, as it's not supported for all versions

git-svn-id: branches/debug_eh@40420 -
Jonas Maebe 6 years ago
parent
commit
645a4da831
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/llvm/agllvm.pas

+ 1 - 1
compiler/llvm/agllvm.pas

@@ -789,7 +789,7 @@ implementation
           optstr:=optstr+' -disable-fp-elim';
           optstr:=optstr+' -disable-fp-elim';
         { fast math }
         { fast math }
         if cs_opt_fastmath in current_settings.optimizerswitches then
         if cs_opt_fastmath in current_settings.optimizerswitches then
-          optstr:=optstr+' -enable-unsafe-fp-math -enable-fp-mad -fp-contract=fast';
+          optstr:=optstr+' -enable-unsafe-fp-math -fp-contract=fast'; { -enable-fp-mad support depends on version }
         { smart linking }
         { smart linking }
         if cs_create_smart in current_settings.moduleswitches then
         if cs_create_smart in current_settings.moduleswitches then
           optstr:=optstr+' -data-sections -function-sections';
           optstr:=optstr+' -data-sections -function-sections';