How can I add a compiler flag?

User avatar
burli
Member
 
Posts: 1641
Joined: Fri Apr 10, 2015 13:18

How can I add a compiler flag?

by burli » Sun Jul 07, 2019 22:13

I want to compile Minetest for AMDs Bulldozer and I want to add a compiler flag, but I don't know, where I have to put it

I want to test if that change something. Can someone help me?
 

User avatar
sfan5
Moderator
 
Posts: 3823
Joined: Wed Aug 24, 2011 09:44
Location: Germany
GitHub: sfan5
IRC: sfan5

Re: How can I add a compiler flag?

by sfan5 » Tue Jul 16, 2019 22:30

You can add compiler flags in the cmake invocation:
cmake . -DCMAKE_C_FLAGS="-march=native -O3" -DCMAKE_CXX_FLAGS="-march=native -O3"
Mods: Mesecons | WorldEdit | Nuke & Minetest builds for Windows (32-bit & 64-bit)
 


Return to General Discussion



Who is online

Users browsing this forum: No registered users and 2 guests