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

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

Issue 2025883002: [MIPS] Fix issue with sysroot_ld_path.py returning empty string (Closed) Base URL: https://chromium.googlesource.com/chromium/src.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 | « no previous file | build/config/posix/sysroot_ld_path.py » ('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 import("//build/config/sanitizers/sanitizers.gni") 5 import("//build/config/sanitizers/sanitizers.gni")
6 import("//build/config/sysroot.gni") 6 import("//build/config/sysroot.gni")
7 import("//build/toolchain/toolchain.gni") 7 import("//build/toolchain/toolchain.gni")
8 8
9 assert(is_posix) 9 assert(is_posix)
10 10
(...skipping 20 matching lines...) Expand all
31 # that is Posix-only. Please see that target for advice on what should go in 31 # that is Posix-only. Please see that target for advice on what should go in
32 # :runtime_library vs. :compiler. 32 # :runtime_library vs. :compiler.
33 config("runtime_library") { 33 config("runtime_library") {
34 if (!is_mac && !is_ios && sysroot != "") { 34 if (!is_mac && !is_ios && sysroot != "") {
35 # Pass the sysroot to all C compiler variants, the assembler, and linker. 35 # Pass the sysroot to all C compiler variants, the assembler, and linker.
36 cflags = [ "--sysroot=" + rebase_path(sysroot, root_build_dir) ] 36 cflags = [ "--sysroot=" + rebase_path(sysroot, root_build_dir) ]
37 asmflags = cflags 37 asmflags = cflags
38 ldflags = cflags 38 ldflags = cflags
39 39
40 # Need to get some linker flags out of the sysroot. 40 # Need to get some linker flags out of the sysroot.
41 ldflags += [ exec_script("sysroot_ld_path.py", 41 ldflags += exec_script("sysroot_ld_path.py",
42 [ 42 [
43 rebase_path("//build/linux/sysroot_ld_path.sh", 43 rebase_path("//build/linux/sysroot_ld_path.sh",
44 root_build_dir), 44 root_build_dir),
45 sysroot, 45 rebase_path(sysroot),
46 ], 46 ],
47 "value") ] 47 "list lines")
48 } 48 }
49 } 49 }
OLDNEW
« no previous file with comments | « no previous file | build/config/posix/sysroot_ld_path.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698