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

Side by Side Diff: build/standalone.gypi

Issue 964483002: Revert of 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, 10 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',
90 89
91 # .gyp files or targets should set v8_code to 1 if they build V8 specific 90 # .gyp files or targets should set v8_code to 1 if they build V8 specific
92 # code, as opposed to external code. This variable is used to control such 91 # code, as opposed to external code. This variable is used to control such
93 # things as the set of warnings to enable, and whether warnings are treated 92 # things as the set of warnings to enable, and whether warnings are treated
94 # as errors. 93 # as errors.
95 'v8_code%': 0, 94 'v8_code%': 0,
96 95
97 # Speeds up Debug builds: 96 # Speeds up Debug builds:
98 # 0 - Compiler optimizations off (debuggable) (default). This may 97 # 0 - Compiler optimizations off (debuggable) (default). This may
99 # be 5x slower than Release (or worse). 98 # be 5x slower than Release (or worse).
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 'cflags': [ '-mminimal-toc' ], 326 'cflags': [ '-mminimal-toc' ],
328 }], 327 }],
329 [ 'visibility=="hidden" and v8_enable_backtrace==0', { 328 [ 'visibility=="hidden" and v8_enable_backtrace==0', {
330 'cflags': [ '-fvisibility=hidden' ], 329 'cflags': [ '-fvisibility=hidden' ],
331 }], 330 }],
332 [ 'component=="shared_library"', { 331 [ 'component=="shared_library"', {
333 'cflags': [ '-fPIC', ], 332 'cflags': [ '-fPIC', ],
334 }], 333 }],
335 ], 334 ],
336 }, 335 },
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 ],
357 }], 336 }],
358 # 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" 337 # 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"
359 # or OS=="netbsd"' 338 # or OS=="netbsd"'
360 ['OS=="qnx"', { 339 ['OS=="qnx"', {
361 'target_defaults': { 340 'target_defaults': {
362 'cflags': [ 341 'cflags': [
363 '-Wall', 342 '-Wall',
364 '<(werror)', 343 '<(werror)',
365 '-Wno-unused-parameter', 344 '-Wno-unused-parameter',
366 '-fno-exceptions', 345 '-fno-exceptions',
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
559 ['use_goma==1 and ("<(GENERATOR)"=="ninja" or clang==1)', { 538 ['use_goma==1 and ("<(GENERATOR)"=="ninja" or clang==1)', {
560 'make_global_settings': [ 539 'make_global_settings': [
561 ['CC_wrapper', '<(gomadir)/gomacc'], 540 ['CC_wrapper', '<(gomadir)/gomacc'],
562 ['CXX_wrapper', '<(gomadir)/gomacc'], 541 ['CXX_wrapper', '<(gomadir)/gomacc'],
563 ['CC.host_wrapper', '<(gomadir)/gomacc'], 542 ['CC.host_wrapper', '<(gomadir)/gomacc'],
564 ['CXX.host_wrapper', '<(gomadir)/gomacc'], 543 ['CXX.host_wrapper', '<(gomadir)/gomacc'],
565 ], 544 ],
566 }], 545 }],
567 ], 546 ],
568 } 547 }
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