diff --git a/gfx/skia/generate_mozbuild.py b/gfx/skia/generate_mozbuild.py index 4191cfc98528..2e716febfb4f 100755 --- a/gfx/skia/generate_mozbuild.py +++ b/gfx/skia/generate_mozbuild.py @@ -68,7 +68,7 @@ LOCAL_INCLUDES += [ ] if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows': - if CONFIG['CC_TYPE'] == 'gcc': + if CONFIG['CC_TYPE'] in ('gcc', 'clang'): DEFINES['SK_JUMPER_USE_ASSEMBLY'] = 0 elif CONFIG['CPU_ARCH'] == 'x86': SOURCES['skia/src/jumper/SkJumper_generated_win.S'].flags += ['-safeseh'] @@ -456,7 +456,7 @@ def write_mozbuild(sources): write_sources(f, sources['linux'], 4) f.write("if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':\n") - f.write(" if CONFIG['CC_TYPE'] != 'gcc':\n") + f.write(" if CONFIG['CC_TYPE'] not in ('gcc', 'clang'):\n") write_list(f, "SOURCES", sources['no-mingw'], 8) # Windows-specific files don't get unification because of nasty headers. # Luckily there are not many files in this. diff --git a/gfx/skia/moz.build b/gfx/skia/moz.build index eb7d961f6119..abad4e84c325 100755 --- a/gfx/skia/moz.build +++ b/gfx/skia/moz.build @@ -626,7 +626,7 @@ if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gtk3': 'skia/src/ports/SkFontHost_FreeType_common.cpp', ] if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows': - if CONFIG['CC_TYPE'] != 'gcc': + if CONFIG['CC_TYPE'] not in ('gcc', 'clang'): SOURCES += [ 'skia/src/jumper/SkJumper_generated_win.S', ] @@ -742,7 +742,7 @@ LOCAL_INCLUDES += [ ] if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows': - if CONFIG['CC_TYPE'] == 'gcc': + if CONFIG['CC_TYPE'] in ('gcc', 'clang'): DEFINES['SK_JUMPER_USE_ASSEMBLY'] = 0 elif CONFIG['CPU_ARCH'] == 'x86': SOURCES['skia/src/jumper/SkJumper_generated_win.S'].flags += ['-safeseh']