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

Side by Side Diff: build/config/fuchsia/BUILD.gn

Issue 2784063002: Config changes to support target_os="fuchsia" (Closed)
Patch Set: simplify Created 3 years, 7 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
OLDNEW
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698