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

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

Issue 2476343004: GN: Add an option to build against the Debian wheezy sysroot (Closed)
Patch Set: Created 4 years, 1 month 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 | « build/.gitignore ('k') | build/config/sysroot.gni » ('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 (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 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/sysroot.gni") 5 import("//build/config/sysroot.gni")
6 6
7 config("sdk") { 7 config("sdk") {
8 if (sysroot != "") { 8 if (sysroot != "") {
9 cflags = [ "--sysroot=" + sysroot ] 9 cflags = [ "--sysroot=" + sysroot ]
10 ldflags = [ "--sysroot=" + sysroot ] 10 ldflags = [ "--sysroot=" + sysroot ]
11 11
12 # Need to get some linker flags out of the sysroot. 12 # Need to get some linker flags out of the sysroot.
13 ldflags += [ exec_script("sysroot_ld_path.py", 13 ldflags += [ exec_script("sysroot_ld_path.py",
14 [ 14 [
15 rebase_path("//build/linux/sysroot_ld_path.sh", 15 rebase_path("//build/linux/sysroot_ld_path.sh",
16 root_build_dir), 16 root_build_dir),
17 sysroot, 17 sysroot,
18 ], 18 ],
19 "value") ] 19 "value") ]
20
21 # When using the pulled wheezy sysroot with gcc, we have to specify these
22 # excplicitly.
23 if (dart_use_wheezy_sysroot && !is_clang) {
24 cflags += [
25 "-I=/usr/include/c++/4.6",
26 "-I=/usr/include/c++/4.6/i486-linux-gnu",
27 ]
28 }
20 } 29 }
21 } 30 }
OLDNEW
« no previous file with comments | « build/.gitignore ('k') | build/config/sysroot.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698