Skip to content

Commit 783d943

Browse files
authored
Merge pull request #1 from memfault/noahp/build-cache
Set an in-tree platformio build cache
2 parents 2e31da1 + 4f111b3 commit 783d943

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ managed_components/
77
dependencies.lock
88
sdkconfig.espidf
99
sdkconfig
10+
/.build_cache

platformio.ini

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ platform = espressif32
1313
board = esp32-c3-devkitc-02
1414

1515
; needed to tell Memfault that we are using a platformIO project
16-
board_build.cmake_extra_args =
16+
board_build.cmake_extra_args =
1717
-DPLATFORMIO_ENABLED=TRUE
1818

1919
; add linker fragment needed for ESP-IDF projects
@@ -43,3 +43,7 @@ build_flags =
4343
-Isrc/memfault/memfault-firmware-sdk/components/include
4444
-include src/memfault/memfault-firmware-sdk/ports/include/memfault/ports/freertos_trace.h
4545

46+
47+
[platformio]
48+
; Set a path to a cache folder
49+
build_cache_dir = .build_cache

0 commit comments

Comments
 (0)