diff --git a/scripts/base.py b/scripts/base.py index 3ae73fa..02bf89c 100644 --- a/scripts/base.py +++ b/scripts/base.py @@ -1887,7 +1887,7 @@ def check_module_version(actual_version, clear_func): return def setup_path(): - if "linux" != host_platform() and config.option("sysroot") != "": + if "linux" == host_platform() and config.option("sysroot") != "": set_env("PATH", config.option("sysroot") + "/usr/bin:" + get_env("PATH")) def check_python():