Skip to content

Commit 57ef4fb

Browse files
author
jantje
committed
#1143 do the macro expansion in code
1 parent c2f7ff4 commit 57ef4fb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

io.sloeber.core/src/io/sloeber/core/tools/Helpers.java

+7
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,13 @@ private static void setTheEnvironmentVariablesSetTheDefaults(String projectName,
483483
setBuildEnvironmentVariable(contribEnv, confDesc, ENV_KEY_BUILD_ARCH, architecture.toUpperCase());
484484
setBuildEnvironmentVariable(contribEnv, confDesc, ENV_KEY_HARDWARE_PATH, hardwarePath.toString());
485485
setBuildEnvironmentVariable(contribEnv, confDesc, ENV_KEY_PLATFORM_PATH, platformPath.toString());
486+
//work around needed because of https://bugs.eclipse.org/bugs/show_bug.cgi?id=560330
487+
//it should have been
488+
//A.BUILD.PATH={ProjDirPath}{DirectoryDelimiter}{ConfigName}
489+
// in pre_processing_platform_default.txt
490+
String buildPath=confDesc.getProjectDescription().getProject().getLocation().append(confDesc.getName()).toOSString();
491+
setBuildEnvironmentVariable(contribEnv, confDesc, "A.BUILD.PATH", buildPath);
492+
//end of workaround
486493

487494

488495
if (Platform.getOS().equals(Platform.OS_WIN32)) {

0 commit comments

Comments
 (0)