Index: build/common.gypi |
diff --git a/build/common.gypi b/build/common.gypi |
index 161464c9237c8cf41af138d9243807263660b675..304d1943f019c1bb5f706c641de0cf1d85c54756 100644 |
--- a/build/common.gypi |
+++ b/build/common.gypi |
@@ -392,6 +392,15 @@ |
}, { |
'enable_plugin_installation%': 1, |
}], |
+ |
+ # Set to 0 to not use third_party/gold as the linker. |
+ # On by default for x64 Linux. Off for ChromeOS as cross-compiling |
+ # makes things complicated. |
+ ['chromeos==0 and host_arch=="x64"', { |
+ 'linux_use_gold_binary%': 1, |
+ }, { |
+ 'linux_use_gold_binary%': 0, |
+ }], |
], |
}, |
@@ -453,6 +462,7 @@ |
'enable_web_intents%': '<(enable_web_intents)', |
'enable_web_intents_tag%': '<(enable_web_intents_tag)', |
'enable_plugin_installation%': '<(enable_plugin_installation)', |
+ 'linux_use_gold_binary%': '<(linux_use_gold_binary)', |
'use_canvas_skia_skia%': '<(use_canvas_skia_skia)', |
# Whether to build for Wayland display server |
'use_wayland%': 0, |
@@ -2000,6 +2010,12 @@ |
'defines': ['KEEP_SHADOW_STACKS'], |
'cflags': ['-finstrument-functions'], |
}], |
+ ['linux_use_gold_binary==1', { |
+ 'ldflags': [ |
+ # Put our gold binary in the search path for the linker. |
+ '-Bthird_party/gold', |
Nico
2012/01/31 22:24:10
Do
'variables': {
'gold_path': 'third_party/gol
|
+ ], |
+ }], |
], |
}, |
}], |