Skip to content

Commit bd8366a

Browse files
authored
mimic win build variant
1 parent 1bd5096 commit bd8366a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

platform.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,17 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
import os
16+
import sys
17+
1518
from platformio.public import PlatformBase
1619

20+
IS_WINDOWS = sys.platform.startswith("win")
21+
# Set Platformio env var to use windows_amd64 for all windows architectures
22+
# only windows_amd64 native espressif toolchains are available
23+
# needs platformio core >= 6.1.16b2 or pioarduino core 6.1.16+test
24+
if IS_WINDOWS:
25+
os.environ["PLATFORMIO_SYSTEM_TYPE"] = "windows_amd64"
1726

1827
class Espressif8266Platform(PlatformBase):
1928

0 commit comments

Comments
 (0)