summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@qt.io>2017-01-31 13:46:02 +0100
committerMichal Klocek <michal.klocek@qt.io>2017-01-31 14:01:14 +0000
commit70ea2bc116db57963e748f908fa0c0e5b33817c3 (patch)
treeec5dc588330b67d5bae3145f14ed67bc6a278c46
parentf408e896d368909f1d6f2f048079fe6d6a271161 (diff)
Fix gn compilation for rhel6.6, rhel7.2
Add __STDC_FORMAT_MACROS which are required for compiling on coin. Change-Id: I8a7204cdc82cfc2af9ed347bf1c7def862b38e54 Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
-rwxr-xr-xchromium/tools/gn/bootstrap/bootstrap.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/chromium/tools/gn/bootstrap/bootstrap.py b/chromium/tools/gn/bootstrap/bootstrap.py
index 16b85ec9a9e..2a858d1ce42 100755
--- a/chromium/tools/gn/bootstrap/bootstrap.py
+++ b/chromium/tools/gn/bootstrap/bootstrap.py
@@ -192,7 +192,8 @@ def write_ninja(path, root_gen_dir, options):
'-D_FILE_OFFSET_BITS=64',
'-pthread',
'-pipe',
- '-fno-exceptions'
+ '-fno-exceptions',
+ '-D__STDC_FORMAT_MACROS'
])
cflags_cc.extend(['-std=c++11', '-Wno-c++11-narrowing'])