mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-29 18:27:20 +02:00
feat(tools): detect linux platform only on linux systems
Closes https://github.com/espressif/esp-idf/issues/13148
This commit is contained in:
@ -311,7 +311,8 @@ class Platforms:
|
||||
if platform_alias == 'any' and CURRENT_PLATFORM:
|
||||
platform_alias = CURRENT_PLATFORM
|
||||
platform_name = Platforms.PLATFORM_FROM_NAME.get(platform_alias, None)
|
||||
platform_name = Platforms.detect_linux_arm_platform(platform_name)
|
||||
if sys.platform == 'linux':
|
||||
platform_name = Platforms.detect_linux_arm_platform(platform_name)
|
||||
|
||||
if not platform_name:
|
||||
raise ValueError(f'Support for platform \'{platform_alias}\' hasn\'t been added yet.')
|
||||
|
Reference in New Issue
Block a user