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

Side by Side Diff: build/toolchain.gypi

Issue 61153009: Add support for the QNX operating system. (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Address latest review comments Created 7 years 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 | « build/standalone.gypi ('k') | include/v8config.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2013 the V8 project authors. All rights reserved. 1 # Copyright 2013 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 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 }, 350 },
351 }], 351 }],
352 ['OS=="win" and v8_enable_prof==1', { 352 ['OS=="win" and v8_enable_prof==1', {
353 'msvs_settings': { 353 'msvs_settings': {
354 'VCLinkerTool': { 354 'VCLinkerTool': {
355 'GenerateMapFile': 'true', 355 'GenerateMapFile': 'true',
356 }, 356 },
357 }, 357 },
358 }], 358 }],
359 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ 359 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \
360 or OS=="netbsd"', { 360 or OS=="netbsd" or OS=="qnx"', {
361 'conditions': [ 361 'conditions': [
362 [ 'v8_no_strict_aliasing==1', { 362 [ 'v8_no_strict_aliasing==1', {
363 'cflags': [ '-fno-strict-aliasing' ], 363 'cflags': [ '-fno-strict-aliasing' ],
364 }], 364 }],
365 ], # conditions 365 ], # conditions
366 }], 366 }],
367 ['OS=="solaris"', { 367 ['OS=="solaris"', {
368 'defines': [ '__C99FEATURES__=1' ], # isinf() etc. 368 'defines': [ '__C99FEATURES__=1' ], # isinf() etc.
369 }], 369 }],
370 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ 370 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \
371 or OS=="netbsd" or OS=="mac" or OS=="android") and \ 371 or OS=="netbsd" or OS=="mac" or OS=="android" or OS=="qnx") and \
372 (v8_target_arch=="arm" or v8_target_arch=="ia32" or \ 372 (v8_target_arch=="arm" or v8_target_arch=="ia32" or \
373 v8_target_arch=="mipsel")', { 373 v8_target_arch=="mipsel")', {
374 # Check whether the host compiler and target compiler support the 374 # Check whether the host compiler and target compiler support the
375 # '-m32' option and set it if so. 375 # '-m32' option and set it if so.
376 'target_conditions': [ 376 'target_conditions': [
377 ['_toolset=="host"', { 377 ['_toolset=="host"', {
378 'variables': { 378 'variables': {
379 'm32flag': '<!(($(echo ${CXX_host:-$(which g++)}) -m32 -E - > /dev /null 2>&1 < /dev/null) && echo "-m32" || true)', 379 'm32flag': '<!(($(echo ${CXX_host:-$(which g++)}) -m32 -E - > /dev /null 2>&1 < /dev/null) && echo "-m32" || true)',
380 }, 380 },
381 'cflags': [ '<(m32flag)' ], 381 'cflags': [ '<(m32flag)' ],
382 'ldflags': [ '<(m32flag)' ], 382 'ldflags': [ '<(m32flag)' ],
383 'xcode_settings': { 383 'xcode_settings': {
384 'ARCHS': [ 'i386' ], 384 'ARCHS': [ 'i386' ],
385 }, 385 },
386 }], 386 }],
387 ['_toolset=="target"', { 387 ['_toolset=="target"', {
388 'variables': { 388 'variables': {
389 'm32flag': '<!(($(echo ${CXX_target:-<(CXX)}) -m32 -E - > /dev/nul l 2>&1 < /dev/null) && echo "-m32" || true)', 389 'm32flag': '<!(($(echo ${CXX_target:-<(CXX)}) -m32 -E - > /dev/nul l 2>&1 < /dev/null) && echo "-m32" || true)',
390 'clang%': 0, 390 'clang%': 0,
391 }, 391 },
392 'conditions': [ 392 'conditions': [
393 ['(OS!="android" or clang==1) and \ 393 ['((OS!="android" and OS!="qnx") or clang==1) and \
394 nacl_target_arch!="nacl_x64"', { 394 nacl_target_arch!="nacl_x64"', {
395 'cflags': [ '<(m32flag)' ], 395 'cflags': [ '<(m32flag)' ],
396 'ldflags': [ '<(m32flag)' ], 396 'ldflags': [ '<(m32flag)' ],
397 }], 397 }],
398 ], 398 ],
399 'xcode_settings': { 399 'xcode_settings': {
400 'ARCHS': [ 'i386' ], 400 'ARCHS': [ 'i386' ],
401 }, 401 },
402 }], 402 }],
403 ], 403 ],
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 }], 497 }],
498 ['v8_optimized_debug==2', { 498 ['v8_optimized_debug==2', {
499 'LinkIncremental': '1', 499 'LinkIncremental': '1',
500 'OptimizeReferences': '2', 500 'OptimizeReferences': '2',
501 'EnableCOMDATFolding': '2', 501 'EnableCOMDATFolding': '2',
502 }], 502 }],
503 ], 503 ],
504 }, 504 },
505 }, 505 },
506 'conditions': [ 506 'conditions': [
507 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd"', { 507 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd" or \
508 OS=="qnx"', {
508 'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter', 509 'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter',
509 '-Wnon-virtual-dtor', '-Woverloaded-virtual', 510 '-Wnon-virtual-dtor', '-Woverloaded-virtual',
510 '<(wno_array_bounds)' ], 511 '<(wno_array_bounds)' ],
511 'conditions': [ 512 'conditions': [
512 ['v8_optimized_debug==0', { 513 ['v8_optimized_debug==0', {
513 'cflags!': [ 514 'cflags!': [
514 '-O0', 515 '-O0',
515 '-O3', 516 '-O3',
516 '-O2', 517 '-O2',
517 '-O1', 518 '-O1',
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
682 'OptimizeReferences': '2', 683 'OptimizeReferences': '2',
683 'EnableCOMDATFolding': '2', 684 'EnableCOMDATFolding': '2',
684 }, 685 },
685 }, 686 },
686 }], # OS=="win" 687 }], # OS=="win"
687 ], # conditions 688 ], # conditions
688 }, # Release 689 }, # Release
689 }, # configurations 690 }, # configurations
690 }, # target_defaults 691 }, # target_defaults
691 } 692 }
OLDNEW
« no previous file with comments | « build/standalone.gypi ('k') | include/v8config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698