OLD | NEW |
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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 }], | 259 }], |
260 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ | 260 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ |
261 or OS=="netbsd" or OS=="mac" or OS=="android") and \ | 261 or OS=="netbsd" or OS=="mac" or OS=="android") and \ |
262 (v8_target_arch=="arm" or v8_target_arch=="ia32" or \ | 262 (v8_target_arch=="arm" or v8_target_arch=="ia32" or \ |
263 v8_target_arch=="mips")', { | 263 v8_target_arch=="mips")', { |
264 # Check whether the host compiler and target compiler support the | 264 # Check whether the host compiler and target compiler support the |
265 # '-m32' option and set it if so. | 265 # '-m32' option and set it if so. |
266 'target_conditions': [ | 266 'target_conditions': [ |
267 ['_toolset=="host"', { | 267 ['_toolset=="host"', { |
268 'variables': { | 268 'variables': { |
269 'm32flag': '<!((echo | $(echo ${CXX_host:-${CXX:-$(which g++)}}) -
m32 -E - > /dev/null 2>&1) && echo -n "-m32" || true)', | 269 'm32flag': '<!((echo | $(echo ${CXX_host:-$(which g++)}) -m32 -E -
> /dev/null 2>&1) && echo -n "-m32" || true)', |
270 }, | 270 }, |
271 'cflags': [ '<(m32flag)' ], | 271 'cflags': [ '<(m32flag)' ], |
272 'ldflags': [ '<(m32flag)' ], | 272 'ldflags': [ '<(m32flag)' ], |
273 'xcode_settings': { | 273 'xcode_settings': { |
274 'ARCHS': [ 'i386' ], | 274 'ARCHS': [ 'i386' ], |
275 }, | 275 }, |
276 }], | 276 }], |
277 ['_toolset=="target"', { | 277 ['_toolset=="target"', { |
278 'variables': { | 278 'variables': { |
279 'm32flag': '<!((echo | $(echo ${CXX_target:-${CXX:-$(which g++)}})
-m32 -E - > /dev/null 2>&1) && echo -n "-m32" || true)', | 279 'm32flag': '<!((echo | $(echo ${CXX_target:-${CXX:-$(which g++)}})
-m32 -E - > /dev/null 2>&1) && echo -n "-m32" || true)', |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 'OptimizeReferences': '2', | 386 'OptimizeReferences': '2', |
387 'EnableCOMDATFolding': '2', | 387 'EnableCOMDATFolding': '2', |
388 }, | 388 }, |
389 }, | 389 }, |
390 }], # OS=="win" | 390 }], # OS=="win" |
391 ], # conditions | 391 ], # conditions |
392 }, # Release | 392 }, # Release |
393 }, # configurations | 393 }, # configurations |
394 }, # target_defaults | 394 }, # target_defaults |
395 } | 395 } |
OLD | NEW |