OLD | NEW |
(Empty) | |
| 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 |
| 3 # found in the LICENSE file. |
| 4 |
| 5 import("//build/config/sysroot.gni") |
| 6 |
| 7 assert(is_fuchsia) |
| 8 assert(is_posix) |
| 9 |
| 10 config("compiler") { |
| 11 defines = [ "SYSROOT_VERSION=$sysroot_version" ] |
| 12 cflags = [] |
| 13 ldflags = [] |
| 14 if (current_cpu == "arm64") { |
| 15 cflags += [ "--target=aarch64-fuchsia" ] |
| 16 ldflags += [ "--target=aarch64-fuchsia" ] |
| 17 } else if (current_cpu == "x64") { |
| 18 cflags += [ "--target=x86_64-fuchsia" ] |
| 19 ldflags += [ "--target=x86_64-fuchsia" ] |
| 20 } else { |
| 21 assert(false, "Unsupported architecture") |
| 22 } |
| 23 asmflags = cflags |
| 24 |
| 25 libs = [ |
| 26 "mxio", |
| 27 "magenta", |
| 28 "unwind", |
| 29 ] |
| 30 } |
OLD | NEW |