mirror of
https://github.com/dart-lang/sdk
synced 2024-09-20 03:51:33 +00:00
3d0a6d019a
R=iposva@google.com Review URL: https://codereview.chromium.org//431263002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38990 260f80e4-7a28-3924-810f-c04153c831b5
178 lines
4.4 KiB
Python
178 lines
4.4 KiB
Python
# Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
|
|
# for details. All rights reserved. Use of this source code is governed by a
|
|
# BSD-style license that can be found in the LICENSE file.
|
|
|
|
{
|
|
'variables': {
|
|
'dart_debug_optimization_level%': '2',
|
|
},
|
|
'target_defaults': {
|
|
'configurations': {
|
|
'Dart_Linux_Base': {
|
|
'abstract': 1,
|
|
'cflags': [
|
|
'-Werror',
|
|
'<@(common_gcc_warning_flags)',
|
|
'-Wnon-virtual-dtor',
|
|
'-Wvla',
|
|
'-Wno-conversion-null',
|
|
'-Woverloaded-virtual',
|
|
'-g3',
|
|
'-ggdb3',
|
|
# TODO(iposva): Figure out if we need to pass anything else.
|
|
#'-ansi',
|
|
'-fno-rtti',
|
|
'-fno-exceptions',
|
|
# '-fvisibility=hidden',
|
|
# '-fvisibility-inlines-hidden',
|
|
],
|
|
},
|
|
|
|
'Dart_Linux_ia32_Base': {
|
|
'abstract': 1,
|
|
'cflags': [ '-m32', '-msse2', '-mfpmath=sse' ],
|
|
'ldflags': [ '-m32', ],
|
|
},
|
|
|
|
'Dart_Linux_x64_Base': {
|
|
'abstract': 1,
|
|
'cflags': [ '-m64', '-msse2' ],
|
|
'ldflags': [ '-m64', ],
|
|
},
|
|
|
|
'Dart_Linux_simarm_Base': {
|
|
'abstract': 1,
|
|
'cflags': [ '-O3', '-m32', '-msse2' ],
|
|
'ldflags': [ '-m32', ],
|
|
},
|
|
|
|
'Dart_Linux_simarm64_Base': {
|
|
'abstract': 1,
|
|
'cflags': [ '-O3', '-m64', '-msse2' ],
|
|
'ldflags': [ '-m64', ],
|
|
},
|
|
|
|
# ARM cross-build
|
|
'Dart_Linux_xarm_Base': {
|
|
'abstract': 1,
|
|
'target_conditions': [
|
|
['_toolset=="target"', {
|
|
'cflags': [
|
|
'-marm',
|
|
'-mfpu=vfp',
|
|
'-Wno-psabi', # suppresses va_list warning
|
|
'-fno-strict-overflow',
|
|
],
|
|
}],
|
|
['_toolset=="host"', {
|
|
'cflags': ['-m32', '-msse2'],
|
|
'ldflags': ['-m32'],
|
|
}]]
|
|
},
|
|
|
|
# ARM native build
|
|
'Dart_Linux_arm_Base': {
|
|
'abstract': 1,
|
|
'cflags': [
|
|
'-marm',
|
|
'-mfpu=vfp',
|
|
'-Wno-psabi', # suppresses va_list warning
|
|
'-fno-strict-overflow',
|
|
],
|
|
},
|
|
|
|
# ARM64 cross-build
|
|
'Dart_Linux_xarm64_Base': {
|
|
'abstract': 1,
|
|
'target_conditions': [
|
|
['_toolset=="target"', {
|
|
'cflags': [ '-O3', ],
|
|
}],
|
|
['_toolset=="host"', {
|
|
'cflags': ['-O3', '-m64', '-msse2'],
|
|
'ldflags': ['-m64'],
|
|
}]]
|
|
},
|
|
|
|
# ARM64 native build
|
|
'Dart_Linux_arm64_Base': {
|
|
'abstract': 1,
|
|
'cflags': [ '-O3', ],
|
|
},
|
|
|
|
'Dart_Linux_simmips_Base': {
|
|
'abstract': 1,
|
|
'cflags': [ '-O3', '-m32', '-msse2' ],
|
|
'ldflags': [ '-m32', ],
|
|
},
|
|
|
|
# MIPS cross-build
|
|
'Dart_Linux_xmips_Base': {
|
|
'abstract': 1,
|
|
'target_conditions': [
|
|
['_toolset=="target"', {
|
|
'cflags': [
|
|
'-march=mips32',
|
|
'-mhard-float',
|
|
'-fno-strict-overflow',
|
|
],
|
|
}],
|
|
['_toolset=="host"',{
|
|
'cflags': [ '-O3', '-m32', '-msse2' ],
|
|
'ldflags': [ '-m32' ],
|
|
}]]
|
|
},
|
|
|
|
# MIPS native build
|
|
'Dart_Linux_mips_Base': {
|
|
'abstract': 1,
|
|
'cflags': [
|
|
'-march=mips32',
|
|
'-mhard-float',
|
|
'-fno-strict-overflow',
|
|
],
|
|
},
|
|
|
|
'Dart_Linux_Debug': {
|
|
'abstract': 1,
|
|
'conditions': [
|
|
['c_frame_pointers==1', {
|
|
'cflags': [
|
|
'-fno-omit-frame-pointer',
|
|
# Clang on Linux will still omit frame pointers from leaf
|
|
# functions unless told otherwise:
|
|
'-mno-omit-leaf-frame-pointer',
|
|
],
|
|
'defines': [
|
|
'PROFILE_NATIVE_CODE'
|
|
],
|
|
}],
|
|
],
|
|
'cflags': [
|
|
'-O<(dart_debug_optimization_level)',
|
|
],
|
|
},
|
|
|
|
'Dart_Linux_Release': {
|
|
'abstract': 1,
|
|
'conditions': [
|
|
['c_frame_pointers==1', {
|
|
'cflags': [
|
|
'-fno-omit-frame-pointer',
|
|
# Clang on Linux will still omit frame pointers from leaf
|
|
# functions unless told otherwise:
|
|
'-mno-omit-leaf-frame-pointer',
|
|
],
|
|
'defines': [
|
|
'PROFILE_NATIVE_CODE'
|
|
],
|
|
}],
|
|
],
|
|
'cflags': [
|
|
'-O3',
|
|
],
|
|
},
|
|
},
|
|
},
|
|
}
|