Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(233)

Side by Side Diff: third_party/qcms/BUILD.gn

Issue 2815303003: [qcms] Disable advisory asserts when running in libfuzzer (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/qcms/README.chromium » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 import("//testing/libfuzzer/fuzzer_test.gni") 5 import("//testing/libfuzzer/fuzzer_test.gni")
6 6
7 config("qcms_config") { 7 config("qcms_config") {
8 include_dirs = [ "src" ] 8 include_dirs = [ "src" ]
9 } 9 }
10 10
(...skipping 13 matching lines...) Expand all
24 "src/matrix.h", 24 "src/matrix.h",
25 "src/qcms.h", 25 "src/qcms.h",
26 "src/qcms_util.c", 26 "src/qcms_util.c",
27 "src/qcmsint.h", 27 "src/qcmsint.h",
28 "src/qcmstypes.h", 28 "src/qcmstypes.h",
29 "src/transform.c", 29 "src/transform.c",
30 "src/transform_util.c", 30 "src/transform_util.c",
31 "src/transform_util.h", 31 "src/transform_util.h",
32 ] 32 ]
33 33
34 defines = []
35
34 if (current_cpu == "x86" || current_cpu == "x64") { 36 if (current_cpu == "x86" || current_cpu == "x64") {
35 defines = [ "SSE2_ENABLE" ] 37 defines += [ "SSE2_ENABLE" ]
36 sources += [ "src/transform-sse2.c" ] 38 sources += [ "src/transform-sse2.c" ]
37 } 39 }
40
41 if (use_libfuzzer) {
42 defines += [ "USE_LIBFUZZER" ]
43 }
38 } 44 }
39 45
40 configs -= [ "//build/config/compiler:chromium_code" ] 46 configs -= [ "//build/config/compiler:chromium_code" ]
41 configs += [ "//build/config/compiler:no_chromium_code" ] 47 configs += [ "//build/config/compiler:no_chromium_code" ]
42 public_configs = [ ":qcms_config" ] 48 public_configs = [ ":qcms_config" ]
43 49
44 if (is_win) { 50 if (is_win) {
45 cflags = [ 51 cflags = [
46 "/wd4018", # Signed/unsigned mismatch in comparison. 52 "/wd4018", # Signed/unsigned mismatch in comparison.
47 "/wd4056", # Overflow in floating-point constant arithmetic (INFINITY). 53 "/wd4056", # Overflow in floating-point constant arithmetic (INFINITY).
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 "//build/config/sanitizers:deps", 92 "//build/config/sanitizers:deps",
87 "//build/win:default_exe_manifest", 93 "//build/win:default_exe_manifest",
88 "//third_party/qcms", 94 "//third_party/qcms",
89 ] 95 ]
90 96
91 configs -= [ "//build/config/compiler:chromium_code" ] 97 configs -= [ "//build/config/compiler:chromium_code" ]
92 configs += [ "//build/config/compiler:no_chromium_code" ] 98 configs += [ "//build/config/compiler:no_chromium_code" ]
93 public_configs = [ ":qcms_config" ] 99 public_configs = [ ":qcms_config" ]
94 } 100 }
95 } 101 }
OLDNEW
« no previous file with comments | « no previous file | third_party/qcms/README.chromium » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698