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...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...