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

Side by Side Diff: build/standalone.gypi

Issue 955393002: ensure host compiler is always clang when cross compiling from linux (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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 | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2012 the V8 project authors. All rights reserved. 1 # Copyright 2012 the V8 project authors. All rights reserved.
2 # Redistribution and use in source and binary forms, with or without 2 # Redistribution and use in source and binary forms, with or without
3 # modification, are permitted provided that the following conditions are 3 # modification, are permitted provided that the following conditions are
4 # met: 4 # met:
5 # 5 #
6 # * Redistributions of source code must retain the above copyright 6 # * Redistributions of source code must retain the above copyright
7 # notice, this list of conditions and the following disclaimer. 7 # notice, this list of conditions and the following disclaimer.
8 # * Redistributions in binary form must reproduce the above 8 # * Redistributions in binary form must reproduce the above
9 # copyright notice, this list of conditions and the following 9 # copyright notice, this list of conditions and the following
10 # disclaimer in the documentation and/or other materials provided 10 # disclaimer in the documentation and/or other materials provided
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 'gomadir': '<!(/bin/echo -n ${HOME}/goma)', 79 'gomadir': '<!(/bin/echo -n ${HOME}/goma)',
80 }], 80 }],
81 ], 81 ],
82 }, 82 },
83 'host_arch%': '<(host_arch)', 83 'host_arch%': '<(host_arch)',
84 'target_arch%': '<(target_arch)', 84 'target_arch%': '<(target_arch)',
85 'v8_target_arch%': '<(v8_target_arch)', 85 'v8_target_arch%': '<(v8_target_arch)',
86 'werror%': '-Werror', 86 'werror%': '-Werror',
87 'use_goma%': '<(use_goma)', 87 'use_goma%': '<(use_goma)',
88 'gomadir%': '<(gomadir)', 88 'gomadir%': '<(gomadir)',
89 'host_clang%': '1',
89 90
90 # .gyp files or targets should set v8_code to 1 if they build V8 specific 91 # .gyp files or targets should set v8_code to 1 if they build V8 specific
91 # code, as opposed to external code. This variable is used to control such 92 # code, as opposed to external code. This variable is used to control such
92 # things as the set of warnings to enable, and whether warnings are treated 93 # things as the set of warnings to enable, and whether warnings are treated
93 # as errors. 94 # as errors.
94 'v8_code%': 0, 95 'v8_code%': 0,
95 96
96 # Speeds up Debug builds: 97 # Speeds up Debug builds:
97 # 0 - Compiler optimizations off (debuggable) (default). This may 98 # 0 - Compiler optimizations off (debuggable) (default). This may
98 # be 5x slower than Release (or worse). 99 # be 5x slower than Release (or worse).
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 'cflags': [ '-mminimal-toc' ], 327 'cflags': [ '-mminimal-toc' ],
327 }], 328 }],
328 [ 'visibility=="hidden" and v8_enable_backtrace==0', { 329 [ 'visibility=="hidden" and v8_enable_backtrace==0', {
329 'cflags': [ '-fvisibility=hidden' ], 330 'cflags': [ '-fvisibility=hidden' ],
330 }], 331 }],
331 [ 'component=="shared_library"', { 332 [ 'component=="shared_library"', {
332 'cflags': [ '-fPIC', ], 333 'cflags': [ '-fPIC', ],
333 }], 334 }],
334 ], 335 ],
335 }, 336 },
337 'conditions': [
338 ['clang!=1 and host_clang==1 and target_arch!="ia32" and target_arch!="x 64"', {
339 'make_global_settings': [
340 ['CC.host', '../<(clang_dir)/bin/clang'],
341 ['CXX.host', '../<(clang_dir)/bin/clang++'],
342 ],
343 }],
344 ['clang==0 and host_clang==1', {
345 'target_conditions': [
346 ['_toolset=="host"', {
347 'cflags_cc': [ '-std=gnu++11', ],
348 }],
349 ],
350 'target_defaults': {
351 'target_conditions': [
352 ['_toolset=="host"', { 'cflags!': [ '-Wno-unused-local-typedefs' ] }],
353 ],
354 },
355 }],
356 ],
336 }], 357 }],
337 # 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" 358 # 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"
338 # or OS=="netbsd"' 359 # or OS=="netbsd"'
339 ['OS=="qnx"', { 360 ['OS=="qnx"', {
340 'target_defaults': { 361 'target_defaults': {
341 'cflags': [ 362 'cflags': [
342 '-Wall', 363 '-Wall',
343 '<(werror)', 364 '<(werror)',
344 '-Wno-unused-parameter', 365 '-Wno-unused-parameter',
345 '-fno-exceptions', 366 '-fno-exceptions',
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 ['use_goma==1 and ("<(GENERATOR)"=="ninja" or clang==1)', { 559 ['use_goma==1 and ("<(GENERATOR)"=="ninja" or clang==1)', {
539 'make_global_settings': [ 560 'make_global_settings': [
540 ['CC_wrapper', '<(gomadir)/gomacc'], 561 ['CC_wrapper', '<(gomadir)/gomacc'],
541 ['CXX_wrapper', '<(gomadir)/gomacc'], 562 ['CXX_wrapper', '<(gomadir)/gomacc'],
542 ['CC.host_wrapper', '<(gomadir)/gomacc'], 563 ['CC.host_wrapper', '<(gomadir)/gomacc'],
543 ['CXX.host_wrapper', '<(gomadir)/gomacc'], 564 ['CXX.host_wrapper', '<(gomadir)/gomacc'],
544 ], 565 ],
545 }], 566 }],
546 ], 567 ],
547 } 568 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698