forked from platformio/platformio-core
Upgraded to SCons 4.0
This commit is contained in:
1 parent
70366d34b9
commit
aa186382a8
3 files changed
+28
-16
No files matched your search
@@ -20,7 +20,7 @@ import sys
|
||||
import click
|
||||
|
||||
from platformio import app, fs, proc, telemetry
|
||||
from platformio.compat import hashlib_encode_data, is_bytes
|
||||
from platformio.compat import PY2, hashlib_encode_data, is_bytes
|
||||
from platformio.package.manager.core import get_core_package_dir
|
||||
from platformio.platform.exception import BuildScriptNotFound
|
||||
|
||||
@@ -89,9 +89,15 @@ class PlatformRunMixin(object):
|
||||
telemetry.send_run_environment(topts, targets)
|
||||
|
||||
def _run_scons(self, variables, targets, jobs):
|
||||
scons_dir = get_core_package_dir("tool-scons")
|
||||
script_path = (
|
||||
os.path.join(scons_dir, "script", "scons")
|
||||
if PY2
|
||||
else os.path.join(scons_dir, "scons.py")
|
||||
)
|
||||
args = [
|
||||
proc.get_pythonexe_path(),
|
||||
os.path.join(get_core_package_dir("tool-scons"), "script", "scons"),
|
||||
script_path,
|
||||
"-Q",
|
||||
"--warn=no-no-parallel-support",
|
||||
"--jobs",
|
||||
|
||||
Reference in new issue
Block a user