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

Unified Diff: build/config/mac/BUILD.gn

Issue 766573003: gn format //build (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/config/linux/pkg_config.gni ('k') | build/config/mac/mac_sdk.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/mac/BUILD.gn
diff --git a/build/config/mac/BUILD.gn b/build/config/mac/BUILD.gn
index 2ebf45872d12447d35f9e245412db782a89da8ae..9288add13952d3ba3ee0d4fac2019ae510761824 100644
--- a/build/config/mac/BUILD.gn
+++ b/build/config/mac/BUILD.gn
@@ -6,8 +6,9 @@ import("//build/config/sysroot.gni")
config("sdk") {
common_flags = [
- "-isysroot", sysroot,
- "-mmacosx-version-min=10.6"
+ "-isysroot",
+ sysroot,
+ "-mmacosx-version-min=10.6",
]
cflags = common_flags
@@ -19,8 +20,10 @@ config("mac_dynamic_flags") {
ldflags = [
"-Wl,-search_paths_first",
"-L.",
+
# Path for loading shared libraries for unbundled binaries.
"-Wl,-rpath,@loader_path/.",
+
# Path for loading shared libraries for bundled binaries. Get back from
# Binary.app/Contents/MacOS.
"-Wl,-rpath,@loader_path/../../..",
@@ -29,7 +32,5 @@ config("mac_dynamic_flags") {
# On Mac, this is used only for executables.
config("mac_executable_flags") {
- ldflags = [
- "-Wl,-pie", # Position independent.
- ]
+ ldflags = [ "-Wl,-pie" ] # Position independent.
}
« no previous file with comments | « build/config/linux/pkg_config.gni ('k') | build/config/mac/mac_sdk.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698