platformio-core icon indicating copy to clipboard operation
platformio-core copied to clipboard

Build directory based on the build type

Open ivankravets opened this issue 1 year ago • 0 comments

A known issue when PlatformIO rebuilds the project every time when the user flashes the board in the release mode and later starts debugging.


Replace

BUILD_DIR = os.path.join("$PROJECT_BUILD_DIR", "$PIOENV")

to

BUILD_DIR = os.path.join("$PROJECT_BUILD_DIR", "$PIOENV", "$BUILD_TYPE")

ivankravets avatar Jul 29 '22 17:07 ivankravets