"do_perf_steps": false,
"do_test_steps": true,
"env": {
- "GYP_DEFINES": "skia_arch_type=x86_64 skia_gpu=0 skia_warnings_as_errors=0 sknx_no_simd=1"
+ "CPPFLAGS": "-DSKNX_NO_SIMD",
+ "GYP_DEFINES": "skia_arch_type=x86_64 skia_gpu=0 skia_warnings_as_errors=0"
},
"nanobench_flags": [
"--scales",
builder_dict.get('cpu_or_gpu_value') == 'Mesa'):
gyp_defs['skia_mesa'] = '1'
- # SKNX_NO_SIMD
- if builder_dict.get('extra_config') == 'SKNX_NO_SIMD':
- gyp_defs['sknx_no_simd'] = '1'
-
# skia_use_android_framework_defines.
if builder_dict.get('extra_config') == 'Android_FrameworkDefs':
gyp_defs['skia_use_android_framework_defines'] = '1'
env['CC'] = '/usr/bin/clang'
env['CXX'] = '/usr/bin/clang++'
+ # SKNX_NO_SIMD, SK_USE_DISCARDABLE_SCALEDIMAGECACHE, etc.
+ extra_config = builder_dict.get('extra_config', '')
+ if extra_config.startswith('SK') and extra_config.isupper():
+ env['CPPFLAGS'] = '-D' + extra_config
+
return env