blob: 652c37a7e1e8365aae1ddf8dca4bef634b9ffdc9 [file] [log] [blame]
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
declare_args() {
# Native Client supports both Newlib and Glibc C libraries where Newlib
# is assumed to be the default one; use this to determine whether Glibc
# is being used instead.
is_nacl_glibc = false
# TODO(ncbray): support ASAN once NaCl's GN build is unforked.
# TODO(cstout): support fnl/musl build in nacl
mojo_use_nacl_sfi = is_linux && !is_asan && !is_fnl
mojo_use_nacl_nonsfi = (is_linux || is_android) && !is_asan && !is_fnl
mojo_use_nacl = mojo_use_nacl_sfi || mojo_use_nacl_nonsfi
}
nacl_toolchain_dir = "//native_client/toolchain/${host_os}_x86"
nacl_irt_toolchain = "//build/toolchain/nacl:irt_" + target_cpu
is_nacl_irt = current_toolchain == nacl_irt_toolchain