mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-03-17 08:01:24 +00:00
Update environment so make functions
This commit is contained in:
parent
0b9e2ddb8d
commit
0f4d669dbe
1 changed files with 12 additions and 0 deletions
|
@ -596,7 +596,19 @@
|
|||
name:NSTaskDidTerminateNotification
|
||||
object:nil];
|
||||
|
||||
NSMutableDictionary *env = [NSMutableDictionary dictionary];
|
||||
|
||||
/*
|
||||
* This change is a kludge. It compensates for the fact that wmaker pollutes our environment
|
||||
* with GNUSTEP_USER_ROOT. This causes any app which might use the make command to fail since
|
||||
* in gnustep-make this variable is deprecated. This issue exists with version of WindowMaker
|
||||
* 0.95.8 and prior. WindowMaker 0.95.9 fixes this by using WMAKER_USER_ROOT instead.
|
||||
*/
|
||||
[env addEntriesFromDictionary: [[NSProcessInfo processInfo] environment]];
|
||||
[env removeObjectForKey: @"GNUSTEP_USER_ROOT"];
|
||||
|
||||
makeTask = [[NSTask alloc] init];
|
||||
[makeTask setEnvironment: env];
|
||||
[makeTask setArguments:buildArgs];
|
||||
[makeTask setCurrentDirectoryPath:[project projectPath]];
|
||||
[makeTask setLaunchPath:buildTool];
|
||||
|
|
Loading…
Reference in a new issue