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

Unified Diff: skia/skia.gyp

Issue 522020: clang support (Closed)
Patch Set: lgtm Created 10 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: skia/skia.gyp
diff --git a/skia/skia.gyp b/skia/skia.gyp
index c6279256462f79cf17ba8ec8a41c59b03cd18c04..20e593da7a42ad8b09465a3c4f907a47794b7137 100644
--- a/skia/skia.gyp
+++ b/skia/skia.gyp
@@ -592,6 +592,14 @@
'../third_party/skia/src/opts/opts_check_SSE2.cpp'
],
}],
+ ['clang==1', {
+ 'defines': [
+ # Remove all use of __restrict__ -- skia uses it incorrectly,
+ # and clang is more strict about it.
+ # http://code.google.com/p/skia/issues/detail?id=63
+ 'SK_RESTRICT=',
+ ],
+ }],
[ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', {
'dependencies': [
'../build/linux/system.gyp:gdk',

Powered by Google App Engine
This is Rietveld 408576698