add fix for latest platformio build changes
This commit is contained in:
parent
4bb4871a6d
commit
77771aa807
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
|
.pio
|
||||||
.pioenvs
|
.pioenvs
|
||||||
.piolibdeps
|
.piolibdeps
|
||||||
.clang_complete
|
.clang_complete
|
||||||
|
@ -15,8 +15,7 @@ def findSubDirectoryFiles(root, subDirectoryPattern, fileName):
|
|||||||
result.append(candidateFile)
|
result.append(candidateFile)
|
||||||
return result
|
return result
|
||||||
|
|
||||||
# lib deps directory
|
def deleteTimeHeader(libDepsDir):
|
||||||
libDepsDir = os.path.join(env.subst('$PROJECT_DIR'), '.piolibdeps')
|
|
||||||
timeHeaderFile = "Time.h"
|
timeHeaderFile = "Time.h"
|
||||||
timeLibDirectoryPattern = "Time(_ID[0-9]+)?"
|
timeLibDirectoryPattern = "Time(_ID[0-9]+)?"
|
||||||
|
|
||||||
@ -29,3 +28,9 @@ if os.path.isdir(libDepsDir) :
|
|||||||
elif numDeletionCandidates > 1:
|
elif numDeletionCandidates > 1:
|
||||||
os.write(2, 'Can\'t delete Time.h, more than one instance found:\n' + '\n'.join(deletionCandidates))
|
os.write(2, 'Can\'t delete Time.h, more than one instance found:\n' + '\n'.join(deletionCandidates))
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
# old lib deps directory
|
||||||
|
deleteTimeHeader(os.path.join(env.subst('$PROJECT_DIR'), '.piolibdeps'))
|
||||||
|
|
||||||
|
# new lib deps directory
|
||||||
|
deleteTimeHeader(os.path.join(env.subst('$PROJECTLIBDEPS_DIR'), env.subst('$PIOENV')))
|
||||||
|
Loading…
Reference in New Issue
Block a user