User forums > Help
Setting enviroment variable for cross compiling
CmKaHo:
Hi,
is it possible to set enviroment variable (aka. bash export CROSS_COMPILE=ppc_6xx-) for specific compiler or project? Problem: when cross compiling under linux/i386, CROSS_COMPILE variable have to be set for a gcc cross compiler.
I temporary solved it by setting variable for whole c::b session, but this is not an elegant solution.
Thanx, Karel.
Biplab:
Use Environments Plugin.
Go through Settings > Environments > Environment variables and define the Environment variables you want.
CmKaHo:
Thx, it works.
But. Problem remains same. It is a global setting - for whole c::b. I need variable only for specific compiler (Setting->Compiler and degugger...) or project. This variable has to be set only when I am compiling project via. cross compiler. Not when I compile native project. Or, worse, if I have two cross platforms, I will need to switch those variable between compiling.
dmoore:
how about Project->Build Options->Custom Variables?
or Settings -> Compiler and Debugger -> Global Compiler Settings -> Custom Variables
CmKaHo:
This could not work. Custom Variables did not impact compile environment. They serves as variables which could be use in time of compilation.
Navigation
[0] Message Index
[#] Next page
Go to full version