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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 ['_type=="static_library"', { | 258 ['_type=="static_library"', { |
259 'ldflags': [ | 259 'ldflags': [ |
260 # Don't export symbols from statically linked libraries. | 260 # Don't export symbols from statically linked libraries. |
261 '-Wl,--exclude-libs=ALL', | 261 '-Wl,--exclude-libs=ALL', |
262 ], | 262 ], |
263 }], | 263 }], |
264 ], | 264 ], |
265 }], # _toolset=="target" | 265 }], # _toolset=="target" |
266 # Settings for building host targets using the system toolchain. | 266 # Settings for building host targets using the system toolchain. |
267 ['_toolset=="host"', { | 267 ['_toolset=="host"', { |
268 'cflags': [ '-pthread' ], | 268 'conditions': [ |
269 'ldflags': [ '-pthread' ], | 269 ['target_arch=="x64"', { |
| 270 'cflags': [ '-m64', '-pthread' ], |
| 271 'ldflags': [ '-m64', '-pthread' ], |
| 272 }, { |
| 273 'cflags': [ '-m32', '-pthread' ], |
| 274 'ldflags': [ '-m32', '-pthread' ], |
| 275 }], |
| 276 ], |
270 'ldflags!': [ | 277 'ldflags!': [ |
271 '-Wl,-z,noexecstack', | 278 '-Wl,-z,noexecstack', |
272 '-Wl,--gc-sections', | 279 '-Wl,--gc-sections', |
273 '-Wl,-O1', | 280 '-Wl,-O1', |
274 '-Wl,--as-needed', | 281 '-Wl,--as-needed', |
275 ], | 282 ], |
276 }], | 283 }], |
277 ], # target_conditions | 284 ], # target_conditions |
278 }, # target_defaults | 285 }, # target_defaults |
279 } | 286 } |
OLD | NEW |