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

spolokh

  • Junior Community Member
  • Posts: 3
  • Hero Points: 0
Add compiler options to autogenerated make file
« on: November 20, 2021, 01:05:21 PM »
HI.
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

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1818
  • Hero Points: 151
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.

spolokh

  • Junior Community Member
  • Posts: 3
  • Hero Points: 0
Re: Add compiler options to autogenerated make file
« Reply #2 on: January 06, 2022, 09:58:38 AM »
Thank you