Author Topic: Add compiler options to autogenerated make file  (Read 161 times)


  • New Community Member
  • Posts: 1
  • Hero Points: 0
Add compiler options to autogenerated make file
« on: November 20, 2021, 01:05:21 pm »
I need to force compile for 32 bit system. I created a project with autogenerated makefile and looks a way how to update CFLAGS system variables with -m32 flag from the make flag. How I can do it?

Thank you


  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1651
  • Hero Points: 140
Re: Add compiler options to autogenerated make file
« Reply #1 on: November 22, 2021, 02:15:14 pm »
If it's a GNU C/C++ project or a Clang C/C++ project, you should be able to go to Build -> (GNU|Clang) C/C++ Options, go to the Compile tab, and add that "-m32" flag to Other Options.

It varies for other project types, but if you have no entry under the Build menu for the compiler options and your compiler honors the CFLAGS environment variable, you can set that variable for the build by going to Project -> Properties, click on the Tools tab, select the Build tool, click on the Advanced button, and then click on "Set Environment Variable" in the dialog that pops up, and then set it there.