Skip to content

Commit 6b931d2

Browse files
author
jantje
committed
#1210 make build.path OS dependent path
1 parent 9f8cd62 commit 6b931d2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

io.sloeber.core/config/pre_processing_platform_default.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ runtime.ide.version=10812
88
build.system.path=${referenced.core.path}${DirectoryDelimiter}system
99
serial.port=${com_port}
1010
build.project_name=${ProjName}
11-
build.path=${ProjDirPath}${DirectoryDelimiter}${ConfigName}
11+
1212

1313

1414
#quick fix for issue #810

io.sloeber.core/src/io/sloeber/core/api/SloeberProject.java

+2
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ public class SloeberProject extends Common {
7272
private boolean myNeedsSyncWithCDT = false; // Knows CDT all configs Sloeber Knows
7373

7474
private static final String ENV_KEY_BUILD_SOURCE_PATH = BUILD + DOT + SOURCE + DOT + PATH;
75+
private static final String ENV_KEY_BUILD_PATH = BUILD + DOT + PATH;
7576
private static final String ENV_KEY_BUILD_GENERIC_PATH = BUILD + DOT + "generic" + DOT + PATH; //$NON-NLS-1$
7677
private static final String ENV_KEY_COMPILER_PATH = COMPILER + DOT + PATH;
7778
private static final String SLOEBER_MAKE_LOCATION = ENV_KEY_SLOEBER_START + "make_location"; //$NON-NLS-1$
@@ -350,6 +351,7 @@ private HashMap<String, String> getEnvVars(String configKey) {
350351
HashMap<String, String> allVars = new HashMap<>();
351352

352353
allVars.put(ENV_KEY_BUILD_SOURCE_PATH, myProject.getLocation().toOSString());
354+
allVars.put(ENV_KEY_BUILD_PATH, myProject.getLocation().append(configKey).toOSString());
353355

354356
if (boardDescription != null) {
355357
allVars.putAll(boardDescription.getEnvVars());

0 commit comments

Comments
 (0)