Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dbcc4d9

Browse files
committed
Use -funroll-loops -ffast-math -O1 optimisations
1 parent 7384e92 commit dbcc4d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/runtime/lpython/lpython.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -687,9 +687,9 @@ def get_rtlib_dir():
687687

688688
gcc_flags = ""
689689
if platform.system() == "Linux":
690-
gcc_flags = " -shared -fPIC "
690+
gcc_flags = " -shared -fPIC -funroll-loops -ffast-math -O1 "
691691
elif platform.system() == "Darwin":
692-
gcc_flags = " -bundle -flat_namespace -undefined suppress "
692+
gcc_flags = " -bundle -flat_namespace -undefined suppress -funroll-loops -ffast-math -O1 "
693693
else:
694694
raise NotImplementedError("Platform not implemented")
695695

0 commit comments

Comments
 (0)