| 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 'conditions': [ | 268 'cflags': [ '-pthread' ], |
| 269 ['target_arch=="x64"', { | 269 'ldflags': [ '-pthread' ], |
| 270 'cflags': [ '-m64', '-pthread' ], | |
| 271 'ldflags': [ '-m64', '-pthread' ], | |
| 272 }, { | |
| 273 'cflags': [ '-m32', '-pthread' ], | |
| 274 'ldflags': [ '-m32', '-pthread' ], | |
| 275 }], | |
| 276 ], | |
| 277 'ldflags!': [ | 270 'ldflags!': [ |
| 278 '-Wl,-z,noexecstack', | 271 '-Wl,-z,noexecstack', |
| 279 '-Wl,--gc-sections', | 272 '-Wl,--gc-sections', |
| 280 '-Wl,-O1', | 273 '-Wl,-O1', |
| 281 '-Wl,--as-needed', | 274 '-Wl,--as-needed', |
| 282 ], | 275 ], |
| 283 }], | 276 }], |
| 284 ], # target_conditions | 277 ], # target_conditions |
| 285 }, # target_defaults | 278 }, # target_defaults |
| 286 } | 279 } |
| OLD | NEW |