U++ Forum - RDF feed
https://www.ultimatepp.org/forums/
Environment variables?
https://www.ultimatepp.org/forums/index.php?t=rview&goto=43106&th=8914#msg_43106
]]>rxantos2014-05-07T05:34:02-00:00Re: Environment variables?
https://www.ultimatepp.org/forums/index.php?t=rview&goto=43107&th=8914#msg_43107
rxantos wrote on Wed, 07 May 2014 07:34
Is 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]]>dolik.rce2014-05-07T06:20:43-00:00Re: Environment variables?
https://www.ultimatepp.org/forums/index.php?t=rview&goto=47472&th=8914#msg_47472
dolik.rce wrote on Wed, 07 May 2014 08:20
May I ask you why would you need that?
Hi, I had the same question (before I had read your answer), and I can explain why I need this feature. I'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. And I can't set it globally and forever because there are older visual studios installed. Thus it would be nice if TheIDE could do it every time when build started.]]>zhdzhv2017-01-20T13:28:09-00:00Re: Environment variables?
https://www.ultimatepp.org/forums/index.php?t=rview&goto=47479&th=8914#msg_47479
Welcome to the forum
zhdzhv wrote on Fri, 20 January 2017 14:28
I'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]]>dolik.rce2017-01-20T20:50:44-00:00Re: Environment variables?
https://www.ultimatepp.org/forums/index.php?t=rview&goto=47482&th=8914#msg_47482
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):