SlickEdit Community

General => General Programming => Topic started by: spolokh on November 20, 2021, 01:05:21 pm

Title: Add compiler options to autogenerated make file
Post by: spolokh 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
Title: Re: Add compiler options to autogenerated make file
Post by: patrick 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.
Title: Re: Add compiler options to autogenerated make file
Post by: spolokh on January 06, 2022, 09:58:38 am
Thank you