@@ -34,8 +34,6 @@ import pynacl.platform
3434import gc
3535gc .disable ()
3636
37- nacltool = False # Daemon: not yet implemented
38-
3937# REPORT
4038CMD_COUNTER = {}
4139ENV_COUNTER = {}
@@ -2798,7 +2796,7 @@ pre_base_env.Append(
27982796nacl_env = MakeArchSpecificEnv ()
27992797# See comment below about libc++ and libpthread in NONIRT_LIBS.
28002798using_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 (
28022800 tools = ['naclsdk' ],
28032801 NACL_BUILD_FAMILY = 'UNTRUSTED' ,
28042802 BUILD_TYPE = 'nacl' ,
@@ -3138,7 +3136,7 @@ if nacl_env.Bit('running_on_valgrind'):
31383136 nacl_env .Append (LINKFLAGS = ['-Wl,-u,have_nacl_valgrind_interceptors' ],
31393137 LIBS = ['valgrind' ])
31403138
3141- if nacltool : environment_list .append (nacl_env )
3139+ if UsingNaclMode () : environment_list .append (nacl_env )
31423140
31433141if not nacl_env .Bit ('nacl_glibc' ):
31443142 # These are all specific to nacl-newlib so we do not include them
@@ -3392,11 +3390,11 @@ nacl_irt_env.ClearBits('bitcode')
33923390# used to build user/test code. nacl-clang is used everywhere for the IRT.
33933391nacl_irt_env .SetBits ('nacl_clang' )
33943392
3395- if nacltool : nacl_irt_env .Tool ('naclsdk' )
3393+ if UsingNaclMode () : nacl_irt_env .Tool ('naclsdk' )
33963394# These are unfortunately clobbered by running Tool, which
33973395# we needed to do to get the destination directory reset.
33983396# 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' ],
34003398 EXTRA_CXXFLAGS = nacl_env ['EXTRA_CXXFLAGS' ],
34013399 CCFLAGS = nacl_env ['CCFLAGS' ],
34023400 CFLAGS = nacl_env ['CFLAGS' ],
@@ -3417,7 +3415,7 @@ if nacl_irt_env.Bit('build_x86_32'):
34173415# The IRT is C only, don't link with the C++ linker so that it doesn't
34183416# start depending on the C++ standard library and (in the case of
34193417# 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' ].
34213419 replace ('nacl-clang++' , 'nacl-clang' )))
34223420
34233421# TODO(mcgrathr): Clean up uses of these methods.
@@ -3533,8 +3531,8 @@ def AddImplicitLibs(env):
35333531 # The -B<dir>/ flag is necessary to tell gcc to look for crt[1in].o there.
35343532 env .Prepend (LINKFLAGS = ['-B${LIB_DIR}/' ])
35353533
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 )
35383536
35393537nacl_irt_env .Append (
35403538 BUILD_SCONSCRIPTS = [
@@ -3549,7 +3547,7 @@ nacl_irt_env.Append(
35493547 ])
35503548nacl_irt_env .AddChromeFilesFromGroup ('untrusted_irt_scons_files' )
35513549
3552- if nacltool : environment_list .append (nacl_irt_env )
3550+ if UsingNaclMode () : environment_list .append (nacl_irt_env )
35533551
35543552# Since browser_tests already use the IRT normally, those are fully covered
35553553# 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,
36143612 is_broken , is_flaky )
36153613nacl_irt_test_env .AddMethod (IrtTestAddNodeToTestSuite , 'AddNodeToTestSuite' )
36163614
3617- if nacltool : environment_list .append (nacl_irt_test_env )
3615+ if UsingNaclMode () : environment_list .append (nacl_irt_test_env )
36183616
36193617
36203618windows_coverage_env = windows_debug_env .Clone (
0 commit comments