Jump to content

Setting compiling arguments


Recommended Posts

Hi, I want to know if it's possible to set my CXXFLAGS and LDFLAGS when compiling the game from svn, so that I can test possible performance gains with -Ofast and -flto (Link Time Optimizations) options. There's is no configure script for that, so can just I do the same way with update_workspaces script ? Like this:

CXXFLAGS="-DNDEBUG -Ofast -flto -march=native -mtune=core2 -msse -msse2" LDFLAGS="-DNDEBUG -Ofast -flto -march=native -mtune=core2 -msse -msse2" ./update-workspaces.sh

Sorry for possible bad english and thanks in advice.

  • Like 1
Link to comment
Share on other sites

Check premake4.lua in 0ad/build/premake.

If you change anything in this file you have to run update-workspaces again and it will add the flags to the makefiles.

The other way for temporary tests is to edit the makefiles directly in build/workspaces/gcc.

Link to comment
Share on other sites

  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...