Skip to content

Commit 1cf0ceb

Browse files
author
jan
committed
getting rid of the warnings caused by cdt issue 870
eclipse-cdt/cdt#870
1 parent e4327bf commit 1cf0ceb

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,9 +260,12 @@ public void run(IProgressMonitor internalMonitor) throws CoreException {
260260
excludes[6] = IPath.fromOSString("libraries/**/._*"); //$NON-NLS-1$
261261
excludes[7] = IPath.fromOSString("libraries/?*/utility/*/*"); //$NON-NLS-1$
262262

263-
// IPath arduinoRoot =
264-
// IPath.fromOSString(SLOEBER_ARDUINO_FOLDER_NAME).append(CONFIG_NAME_VARIABLE);
265-
IPath arduinoRoot = newProjectHandle.getFolder(SLOEBER_ARDUINO_FOLDER_NAME).getFullPath().append(CONFIG_NAME_VARIABLE);
263+
/*
264+
* CDT currently causes issues with ${ConfigName]
265+
* https://github.com/eclipse-cdt/cdt/issues/870
266+
* IPath arduinoRoot = newProjectHandle.getFolder(SLOEBER_ARDUINO_FOLDER_NAME).getFullPath().append(CONFIG_NAME_VARIABLE);
267+
*/
268+
IPath arduinoRoot = newProjectHandle.getFolder(SLOEBER_ARDUINO_FOLDER_NAME).getFullPath().append(curConfig.getName());
266269
newSourceEntries[1] = new CSourceEntry(arduinoRoot, excludes, ICSettingEntry.NONE);
267270
curConfig.setSourceEntries(newSourceEntries);
268271
IAutoBuildConfigurationDescription iAutoBuildConfig = IAutoBuildConfigurationDescription

0 commit comments

Comments
 (0)