@@ -34,8 +34,6 @@ import pynacl.platform
34
34
import gc
35
35
gc .disable ()
36
36
37
- nacltool = False # Daemon: not yet implemented
38
-
39
37
# REPORT
40
38
CMD_COUNTER = {}
41
39
ENV_COUNTER = {}
@@ -2798,7 +2796,7 @@ pre_base_env.Append(
2798
2796
nacl_env = MakeArchSpecificEnv ()
2799
2797
# See comment below about libc++ and libpthread in NONIRT_LIBS.
2800
2798
using_nacl_libcxx = nacl_env .Bit ('bitcode' ) or nacl_env .Bit ('nacl_clang' )
2801
- if nacltool : nacl_env = nacl_env .Clone (
2799
+ if UsingNaclMode () : nacl_env = nacl_env .Clone (
2802
2800
tools = ['naclsdk' ],
2803
2801
NACL_BUILD_FAMILY = 'UNTRUSTED' ,
2804
2802
BUILD_TYPE = 'nacl' ,
@@ -3138,7 +3136,7 @@ if nacl_env.Bit('running_on_valgrind'):
3138
3136
nacl_env .Append (LINKFLAGS = ['-Wl,-u,have_nacl_valgrind_interceptors' ],
3139
3137
LIBS = ['valgrind' ])
3140
3138
3141
- if nacltool : environment_list .append (nacl_env )
3139
+ if UsingNaclMode () : environment_list .append (nacl_env )
3142
3140
3143
3141
if not nacl_env .Bit ('nacl_glibc' ):
3144
3142
# These are all specific to nacl-newlib so we do not include them
@@ -3392,11 +3390,11 @@ nacl_irt_env.ClearBits('bitcode')
3392
3390
# used to build user/test code. nacl-clang is used everywhere for the IRT.
3393
3391
nacl_irt_env .SetBits ('nacl_clang' )
3394
3392
3395
- if nacltool : nacl_irt_env .Tool ('naclsdk' )
3393
+ if UsingNaclMode () : nacl_irt_env .Tool ('naclsdk' )
3396
3394
# These are unfortunately clobbered by running Tool, which
3397
3395
# we needed to do to get the destination directory reset.
3398
3396
# We want all the same values from nacl_env.
3399
- if nacltool : nacl_irt_env .Replace (EXTRA_CFLAGS = nacl_env ['EXTRA_CFLAGS' ],
3397
+ if UsingNaclMode () : nacl_irt_env .Replace (EXTRA_CFLAGS = nacl_env ['EXTRA_CFLAGS' ],
3400
3398
EXTRA_CXXFLAGS = nacl_env ['EXTRA_CXXFLAGS' ],
3401
3399
CCFLAGS = nacl_env ['CCFLAGS' ],
3402
3400
CFLAGS = nacl_env ['CFLAGS' ],
@@ -3417,7 +3415,7 @@ if nacl_irt_env.Bit('build_x86_32'):
3417
3415
# The IRT is C only, don't link with the C++ linker so that it doesn't
3418
3416
# start depending on the C++ standard library and (in the case of
3419
3417
# libc++) pthread.
3420
- if nacltool : nacl_irt_env .Replace (LINK = (nacl_irt_env ['LINK' ].
3418
+ if UsingNaclMode () : nacl_irt_env .Replace (LINK = (nacl_irt_env ['LINK' ].
3421
3419
replace ('nacl-clang++' , 'nacl-clang' )))
3422
3420
3423
3421
# TODO(mcgrathr): Clean up uses of these methods.
@@ -3533,8 +3531,8 @@ def AddImplicitLibs(env):
3533
3531
# The -B<dir>/ flag is necessary to tell gcc to look for crt[1in].o there.
3534
3532
env .Prepend (LINKFLAGS = ['-B${LIB_DIR}/' ])
3535
3533
3536
- if nacltool : AddImplicitLibs (nacl_env )
3537
- if nacltool : AddImplicitLibs (nacl_irt_env )
3534
+ if UsingNaclMode () : AddImplicitLibs (nacl_env )
3535
+ if UsingNaclMode () : AddImplicitLibs (nacl_irt_env )
3538
3536
3539
3537
nacl_irt_env .Append (
3540
3538
BUILD_SCONSCRIPTS = [
@@ -3549,7 +3547,7 @@ nacl_irt_env.Append(
3549
3547
])
3550
3548
nacl_irt_env .AddChromeFilesFromGroup ('untrusted_irt_scons_files' )
3551
3549
3552
- if nacltool : environment_list .append (nacl_irt_env )
3550
+ if UsingNaclMode () : environment_list .append (nacl_irt_env )
3553
3551
3554
3552
# Since browser_tests already use the IRT normally, those are fully covered
3555
3553
# in nacl_env. But the non_browser_tests don't use the IRT in nacl_env.
@@ -3614,7 +3612,7 @@ def IrtTestAddNodeToTestSuite(env, node, suite_name, node_name=None,
3614
3612
is_broken , is_flaky )
3615
3613
nacl_irt_test_env .AddMethod (IrtTestAddNodeToTestSuite , 'AddNodeToTestSuite' )
3616
3614
3617
- if nacltool : environment_list .append (nacl_irt_test_env )
3615
+ if UsingNaclMode () : environment_list .append (nacl_irt_test_env )
3618
3616
3619
3617
3620
3618
windows_coverage_env = windows_debug_env .Clone (
0 commit comments