Skip to content

Commit

Permalink
Remove Ofast from flags
Browse files Browse the repository at this point in the history
This caused some incorrect behavior for numpy. Generally disabling to
avoid problematic behavior.

Signed-off-by: William Douglas <[email protected]>
  • Loading branch information
bryteise committed May 14, 2024
1 parent 5905be9 commit 92c4104
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autospec/specfiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ def write_variables(self):
if self.config.config_opts['use_clang']:
flags.extend(["-O3"])
else:
flags.extend(["-Ofast", "-fno-semantic-interposition", "-falign-functions=32"])
flags.extend(["-fno-semantic-interposition", "-falign-functions=32"])
if not self.config.config_opts['full-debug-info'] and not self.config.config_opts['use_clang']:
flags.extend(["-gno-variable-location-views", "-gno-column-info", "-femit-struct-debug-baseonly", "-fdebug-types-section", "-gz=zstd", "-g1"])
if self.config.default_pattern != 'qmake' or self.config.default_pattern != 'qmake6':
Expand Down

0 comments on commit 92c4104

Please sign in to comment.