OLD | NEW |
1 # Copyright 2017 The Chromium Authors. All rights reserved. | 1 # Copyright 2017 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 import("//build/config/fuchsia/config.gni") | 5 import("//build/config/fuchsia/config.gni") |
6 import("//build/config/sysroot.gni") | 6 import("//build/config/sysroot.gni") |
7 | 7 |
8 assert(is_fuchsia) | 8 assert(is_fuchsia) |
9 assert(is_posix) | 9 assert(is_posix) |
10 | 10 |
11 config("compiler") { | 11 config("compiler") { |
12 defines = [ "SYSROOT_VERSION=$sysroot_version" ] | 12 defines = [ |
| 13 # To force full builds after sysroot updates. |
| 14 "SYSROOT_VERSION=$sysroot_version", |
| 15 |
| 16 # Don't have include error codes that aren't prefixed with MX_ in |
| 17 # magenta/errors.h, for they collide with ERR_ defines in chrome code. |
| 18 "USE_MX_ERRORS", |
| 19 ] |
13 cflags = [] | 20 cflags = [] |
14 ldflags = [] | 21 ldflags = [] |
15 if (current_cpu == "arm64") { | 22 if (current_cpu == "arm64") { |
16 cflags += [ "--target=aarch64-fuchsia" ] | 23 cflags += [ "--target=aarch64-fuchsia" ] |
17 ldflags += [ "--target=aarch64-fuchsia" ] | 24 ldflags += [ "--target=aarch64-fuchsia" ] |
18 } else if (current_cpu == "x64") { | 25 } else if (current_cpu == "x64") { |
19 cflags += [ "--target=x86_64-fuchsia" ] | 26 cflags += [ "--target=x86_64-fuchsia" ] |
20 ldflags += [ "--target=x86_64-fuchsia" ] | 27 ldflags += [ "--target=x86_64-fuchsia" ] |
21 } else { | 28 } else { |
22 assert(false, "Unsupported architecture") | 29 assert(false, "Unsupported architecture") |
(...skipping 16 matching lines...) Expand all Loading... |
39 # will be available. Raise to 8M which matches e.g. macOS. | 46 # will be available. Raise to 8M which matches e.g. macOS. |
40 "-Wl,-z,stack-size=0x800000", | 47 "-Wl,-z,stack-size=0x800000", |
41 ] | 48 ] |
42 | 49 |
43 libs = [ | 50 libs = [ |
44 "mxio", | 51 "mxio", |
45 "magenta", | 52 "magenta", |
46 "unwind", | 53 "unwind", |
47 ] | 54 ] |
48 } | 55 } |
OLD | NEW |