Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » Environment variables?
|
Re: Environment variables? [message #43107 is a reply to message #43106] |
Wed, 07 May 2014 08:20   |
|
rxantos wrote on Wed, 07 May 2014 07:34Is there any way to tell TheIde to set an environment variables during a build?
Hi,
May I ask you why would you need that? Only reason I can see is to influence the build tools in some way that cannot be set using command line parameters. But I'm not aware of any such feature in any of the compilers that I'm familiar with. Unless you need this for custom build step, but in such case it can be done in the build step definition...
That said, I think there is currently no way to do that. But it would be quite easy to compile your own theide with this special capability added 
Best regards,
Honza
|
|
|
|
Re: Environment variables? [message #47479 is a reply to message #47472] |
Fri, 20 January 2017 21:50   |
|
Hi zhdzhv,
Welcome to the forum 
zhdzhv wrote on Fri, 20 January 2017 14:28I'm trying to use standalone mcvc2015 toolchain without visual studio itself, and before running cl.exe or any other build tool I have to set PATH variable properly.
Are you sure it is not enough to set the path in the build method? See Setup > Build methods > "PATH - executable directories". You can insert new director using a right click in this pane and selecting Append row. I think this should be just what you need 
Also, isn't MSVC2015 supported by the autosetup tool? This is actually question for someone else to answer, as I'm not a windows user 
Best regards,
Honza
|
|
|
Re: Environment variables? [message #47482 is a reply to message #47479] |
Sat, 21 January 2017 07:07  |
zhdzhv
Messages: 2 Registered: January 2017
|
Junior Member |
|
|
Yes, it's enough, thank you. Wonder why didn't I try before asking.
I even didn't try autosetup because msvc2015 just not installed. I use EWDK instead, it doesn't require any installation, it unpacked to some folder and ready to use. There one batch file which sets PATH and some other variables, and then one can use command line to launch msbuild or manually run cl.exe, link.exe and others.
If somebody will decide to try this toolchain with upp, here screenshot of my initial (just to build examples) settings (win7 x64, x64 target, ewdk placed in c:\ewdk folder):

-
Attachment: s.png
(Size: 115.54KB, Downloaded 519 times)
|
|
|
Goto Forum:
Current Time: Sat Apr 26 21:59:44 CEST 2025
Total time taken to generate the page: 0.01068 seconds
|