Skip to content

Commit ecfadf8

Browse files
committed
Deps build: don't clear env vars for scons
The scons build here in fact pays far less attention to environment variables than other build systems. The main one that matters is PATH. PATH will be needed once we update the native_client reference since I de-hardcoded the /usr/bin/clang path (also we will probably use GCC which never had that).
1 parent 17be6a7 commit ecfadf8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎external_deps/build.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,7 @@ build_naclruntime() {
11031103
"${download_only}" && return
11041104

11051105
cd "${dir_name}"
1106-
env -i /usr/bin/env bash -l -c "python3 /usr/bin/scons --mode=opt-linux 'platform=${NACL_ARCH}' werror=0 sysinfo=0 sel_ldr"
1106+
scons --mode=opt-linux "platform=${NACL_ARCH}" werror=0 sysinfo=0 sel_ldr
11071107
smart_copy "scons-out/opt-linux-${NACL_ARCH}/staging/nacl_helper_bootstrap" "${PREFIX}/nacl_helper_bootstrap"
11081108
smart_copy "scons-out/opt-linux-${NACL_ARCH}/staging/sel_ldr" "${PREFIX}/nacl_loader"
11091109
}

0 commit comments

Comments
 (0)