Skip to content

Commit

Permalink
mimic win build variant
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason2866 authored Sep 7, 2024
1 parent 1bd5096 commit bd8366a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,17 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import os
import sys

from platformio.public import PlatformBase

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

class Espressif8266Platform(PlatformBase):

Expand Down

0 comments on commit bd8366a

Please sign in to comment.