mirror of
https://github.com/bdring/Grbl_Esp32.git
synced 2025-08-07 15:17:00 +02:00
Tweaks to build-all scripts
This commit is contained in:
@@ -4,7 +4,6 @@
|
||||
|
||||
# Setting PYTHONIOENCODING avoids an obscure crash related to code page mismatch
|
||||
$env:PYTHONIOENCODING="utf-8"
|
||||
$envsave = $env:PLATFORMIO_BUILD_FLAGS
|
||||
|
||||
Function BuildMachine($names) {
|
||||
$basename = $names[0]
|
||||
@@ -30,5 +29,4 @@ $base="3axis_v4.h"
|
||||
foreach ($filepath in Get-ChildItem -file .\Grbl_Esp32\Machines\add_*) {
|
||||
BuildMachine($base, $filepath.name)
|
||||
}
|
||||
|
||||
$env:PLATFORMIO_BUILD_FLAGS=$envsave
|
||||
Remove-Item env:PLATFORMIO_BUILD_FLAGS
|
||||
|
7
clear-flags.ps1
Normal file
7
clear-flags.ps1
Normal file
@@ -0,0 +1,7 @@
|
||||
# Remove the override of PLATFORMIO_BUILD_FLAGS
|
||||
# This is useful if you were running build-all.ps1 and
|
||||
# had to kill it with Ctrl-C, thus leaving
|
||||
# PLATFORMIO_BUILD_FLAGS set to override the machine type.
|
||||
# A clear-flags.sh equivalent is unnecessary, as build-all.sh
|
||||
# does not set PLATFORMIO_BUILD_FLAGS globally
|
||||
Remove-Item Env:PLATFORMIO_BUILD_FLAGS
|
Reference in New Issue
Block a user