| 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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 208           ['target_arch=="mipsel"', { | 208           ['target_arch=="mipsel"', { | 
| 209             # The mips toolchain currently has problems with stack-protector. | 209             # The mips toolchain currently has problems with stack-protector. | 
| 210             'cflags!': [ | 210             'cflags!': [ | 
| 211               '-fstack-protector', | 211               '-fstack-protector', | 
| 212               '-U__linux__' | 212               '-U__linux__' | 
| 213             ], | 213             ], | 
| 214             'cflags': [ | 214             'cflags': [ | 
| 215               '-fno-stack-protector', | 215               '-fno-stack-protector', | 
| 216             ], | 216             ], | 
| 217           }], | 217           }], | 
| 218           ['target_arch=="arm64" or target_arch=="x64"', { | 218           ['target_arch=="arm" or target_arch=="arm64" or target_arch=="x64"', { | 
| 219             # TODO(ulan): Enable PIE for other architectures (crbug.com/373219). |  | 
| 220             'cflags': [ | 219             'cflags': [ | 
| 221               '-fPIE', | 220               '-fPIE', | 
| 222             ], | 221             ], | 
| 223             'ldflags': [ | 222             'ldflags': [ | 
| 224               '-pie', | 223               '-pie', | 
| 225             ], | 224             ], | 
| 226           }], | 225           }], | 
| 227         ], | 226         ], | 
| 228         'target_conditions': [ | 227         'target_conditions': [ | 
| 229           ['_type=="executable"', { | 228           ['_type=="executable"', { | 
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 271         'ldflags!': [ | 270         'ldflags!': [ | 
| 272           '-Wl,-z,noexecstack', | 271           '-Wl,-z,noexecstack', | 
| 273           '-Wl,--gc-sections', | 272           '-Wl,--gc-sections', | 
| 274           '-Wl,-O1', | 273           '-Wl,-O1', | 
| 275           '-Wl,--as-needed', | 274           '-Wl,--as-needed', | 
| 276         ], | 275         ], | 
| 277       }], | 276       }], | 
| 278     ],  # target_conditions | 277     ],  # target_conditions | 
| 279   },  # target_defaults | 278   },  # target_defaults | 
| 280 } | 279 } | 
| OLD | NEW | 
|---|