Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(253)

Side by Side Diff: build/config/nacl/config.gni

Issue 2051163002: Nuke NaCl SFI, part 1. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « PRESUBMIT.py ('k') | mojo/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 declare_args() { 5 declare_args() {
6 # Native Client supports both Newlib and Glibc C libraries where Newlib 6 # Native Client supports both Newlib and Glibc C libraries where Newlib
7 # is assumed to be the default one; use this to determine whether Glibc 7 # is assumed to be the default one; use this to determine whether Glibc
8 # is being used instead. 8 # is being used instead.
9 is_nacl_glibc = false 9 is_nacl_glibc = false
10 10
11 # TODO(ncbray): support ASAN once NaCl's GN build is unforked. 11 # TODO(ncbray): support ASAN once NaCl's GN build is unforked.
12 # TODO(cstout): support fnl/musl build in nacl 12 # TODO(cstout): support fnl/musl build in nacl
13 mojo_use_nacl_sfi = is_linux && !is_asan && !is_fnl
14 mojo_use_nacl_nonsfi = (is_linux || is_android) && !is_asan && !is_fnl 13 mojo_use_nacl_nonsfi = (is_linux || is_android) && !is_asan && !is_fnl
15 mojo_use_nacl = mojo_use_nacl_sfi || mojo_use_nacl_nonsfi 14
15 # TODO(vtl): This now seems totally redundant.
16 mojo_use_nacl = mojo_use_nacl_nonsfi
16 } 17 }
17 18
18 nacl_toolchain_dir = "//native_client/toolchain/${host_os}_x86" 19 nacl_toolchain_dir = "//native_client/toolchain/${host_os}_x86"
19 20
20 nacl_irt_toolchain = "//build/toolchain/nacl:irt_" + target_cpu 21 nacl_irt_toolchain = "//build/toolchain/nacl:irt_" + target_cpu
21 is_nacl_irt = current_toolchain == nacl_irt_toolchain 22 is_nacl_irt = current_toolchain == nacl_irt_toolchain
OLDNEW
« no previous file with comments | « PRESUBMIT.py ('k') | mojo/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698