Skip to content

Commit 67c00f3

Browse files
committed
Select one unity_config.h directory
Fix Issue #816 by appending only the first directory found containing a unity_config.h to the include path
1 parent 51d2db9 commit 67c00f3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

platformio-build.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,7 @@
2020
p = projenv.subst(p)
2121
if os.path.isfile(os.path.join(p, "unity_config.h")):
2222
env.Prepend(CPPPATH=[p])
23+
# Stop at the first unity_config.h found to include.
24+
break
2325
except:
2426
pass

0 commit comments

Comments
 (0)