| Index: build/gyp_chromium
|
| diff --git a/build/gyp_chromium b/build/gyp_chromium
|
| index 8a16a85b1c02453dbe6be0ca960ced84ccc29390..8409a28de114918e09ce23a46caaebe2a10c7e33 100755
|
| --- a/build/gyp_chromium
|
| +++ b/build/gyp_chromium
|
| @@ -131,9 +131,8 @@ def RunGN(supplemental_includes):
|
| if sys.platform == 'win32':
|
| gnpath += 'win/gn.exe'
|
| elif sys.platform.startswith('linux'):
|
| - # On Linux we have 32-bit and 64-bit versions. Checking /sbin/init avoids
|
| - # uname's confusion when running a 32-bit userland on a 64-bit kernel.
|
| - if subprocess.check_output(["file", "/sbin/init"]).find("ELF 64-bit") >= 0:
|
| + # On Linux we have 32-bit and 64-bit versions.
|
| + if subprocess.check_output(["getconf", "LONG_BIT"]).find("64") >= 0:
|
| gnpath += 'linux/gn'
|
| else:
|
| gnpath += 'linux/gn32'
|
|
|