eclipse-plugins: Makefile projects do not inherit "global" ${cross_make) setting
I installed Eclipse 2021-06 IDE for Embedded C/C++ Developers from here on Windows 10:
https://www.eclipse.org/downloads/packages/
I dropped the Windows Build Tools and RISC-V GCC toolchain into this to allow me to work with RISC-V projects.


I created a Makefile (not a Managed Make) RISC-V project

and added a Makefile containing the following:
all:
$(info This is my Makefile)
I built the project and got this:
11:05:56 **** Incremental Build of configuration Default for project test ****
make all
This is my Makefile
make: 'all' is up to date.
11:05:56 Build Finished. 0 errors, 0 warnings. (took 349ms)
All good so far.
I then went to Main Menu > Window > Preferences > C/C++ > Build > Build Variables and defined ${cross_make} there:

I saved this and then tried to build the project again expecting it to fail because it should attempt to call foobar instead of make but it actually still calls make and works fine.
My understanding is that the Makefile project should inherit the ${cross_make} vairable defined at the “global” level but it does not.
Note that ${cross_make} is not defined at the project level which would override any “global” setting.


I hope that that describes the issue adequately but if not please let me know what additional info is needed.
Regards Tommy
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 31 (10 by maintainers)
OK - I think that the view is that this is not a bug after all so I am closing it.