OLD | NEW |
---|---|
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # IMPORTANT: | 5 # IMPORTANT: |
6 # Please don't directly include this file if you are building via gyp_chromium, | 6 # Please don't directly include this file if you are building via gyp_chromium, |
7 # since gyp_chromium is automatically forcing its inclusion. | 7 # since gyp_chromium is automatically forcing its inclusion. |
8 { | 8 { |
9 # Variables expected to be overriden on the GYP command line (-D) or by | 9 # Variables expected to be overriden on the GYP command line (-D) or by |
10 # ~/.gyp/include.gypi. | 10 # ~/.gyp/include.gypi. |
(...skipping 2979 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2990 }], | 2990 }], |
2991 ], | 2991 ], |
2992 }], | 2992 }], |
2993 ['tsan==1', { | 2993 ['tsan==1', { |
2994 'target_conditions': [ | 2994 'target_conditions': [ |
2995 ['_toolset=="target"', { | 2995 ['_toolset=="target"', { |
2996 'cflags': [ | 2996 'cflags': [ |
2997 '-fsanitize=thread', | 2997 '-fsanitize=thread', |
2998 '-fno-omit-frame-pointer', | 2998 '-fno-omit-frame-pointer', |
2999 '-fPIC', | 2999 '-fPIC', |
3000 '-gline-tables-only', | |
3000 '-mllvm', '-tsan-blacklist=<(tsan_blacklist)', | 3001 '-mllvm', '-tsan-blacklist=<(tsan_blacklist)', |
3001 ], | 3002 ], |
3002 'ldflags': [ | 3003 'ldflags': [ |
3003 '-fsanitize=thread', | 3004 '-fsanitize=thread', |
3004 ], | 3005 ], |
3005 'defines': [ | 3006 'defines': [ |
3006 'THREAD_SANITIZER', | 3007 'THREAD_SANITIZER', |
3007 'DYNAMIC_ANNOTATIONS_EXTERNAL_IMPL=1', | 3008 'DYNAMIC_ANNOTATIONS_EXTERNAL_IMPL=1', |
3008 'WTF_USE_DYNAMIC_ANNOTATIONS_NOIMPL=1', | 3009 'WTF_USE_DYNAMIC_ANNOTATIONS_NOIMPL=1', |
3009 ], | 3010 ], |
3010 'target_conditions': [ | 3011 'target_conditions': [ |
3011 ['_type=="executable"', { | 3012 ['_type=="executable"', { |
3012 'ldflags': [ | 3013 'ldflags': [ |
3013 '-pie', | 3014 '-pie', |
3014 ], | 3015 ], |
3015 }], | 3016 }], |
3016 ], | 3017 ], |
3017 }], | 3018 }], |
3018 ], | 3019 ], |
3019 }], | 3020 }], |
3020 ['msan==1', { | 3021 ['msan==1', { |
3021 'target_conditions': [ | 3022 'target_conditions': [ |
3022 ['_toolset=="target"', { | 3023 ['_toolset=="target"', { |
3023 'cflags': [ | 3024 'cflags': [ |
3024 '-fsanitize=memory', | 3025 '-fsanitize=memory', |
3025 '-fsanitize-memory-track-origins', | 3026 '-fsanitize-memory-track-origins', |
3026 '-fno-omit-frame-pointer', | 3027 '-fno-omit-frame-pointer', |
3027 '-fPIC', | 3028 '-fPIC', |
Nico
2013/04/17 16:46:21
Here too?
Alexander Potapenko
2013/04/18 11:56:58
I've moved the common flags into a separate subsec
| |
3028 ], | 3029 ], |
3029 'ldflags': [ | 3030 'ldflags': [ |
3030 '-fsanitize=memory', | 3031 '-fsanitize=memory', |
3031 ], | 3032 ], |
3032 'defines': [ | 3033 'defines': [ |
3033 'MEMORY_SANITIZER', | 3034 'MEMORY_SANITIZER', |
3034 ], | 3035 ], |
3035 'target_conditions': [ | 3036 'target_conditions': [ |
3036 ['_type=="executable"', { | 3037 ['_type=="executable"', { |
3037 'ldflags': [ | 3038 'ldflags': [ |
(...skipping 1206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4244 # settings in target dicts. SYMROOT is a special case, because many other | 4245 # settings in target dicts. SYMROOT is a special case, because many other |
4245 # Xcode variables depend on it, including variables such as | 4246 # Xcode variables depend on it, including variables such as |
4246 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 4247 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
4247 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 4248 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
4248 # files to appear (when present) in the UI as actual files and not red | 4249 # files to appear (when present) in the UI as actual files and not red |
4249 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 4250 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
4250 # and therefore SYMROOT, needs to be set at the project level. | 4251 # and therefore SYMROOT, needs to be set at the project level. |
4251 'SYMROOT': '<(DEPTH)/xcodebuild', | 4252 'SYMROOT': '<(DEPTH)/xcodebuild', |
4252 }, | 4253 }, |
4253 } | 4254 } |
OLD | NEW |