File tree Expand file tree Collapse file tree 3 files changed +16
-6
lines changed Expand file tree Collapse file tree 3 files changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -1016,8 +1016,8 @@ optional("sksl_interpreter") {
1016
1016
}
1017
1017
1018
1018
optional (" skvm_jit" ) {
1019
- enabled = skia_enable_skvm_jit
1020
- public_defines = [ " SKVM_JIT " ]
1019
+ enabled = skia_enable_skvm_jit_when_possible
1020
+ public_defines = [ " SKVM_JIT_WHEN_POSSIBLE " ]
1021
1021
if (skia_vtune_path != " " ) {
1022
1022
public_defines += [ " SKVM_JIT_VTUNE" ]
1023
1023
public_include_dirs = [ " $skia_vtune_path /include" ]
Original file line number Diff line number Diff line change @@ -25,10 +25,7 @@ declare_args() {
25
25
skia_enable_skottie = ! (is_win && is_component_build )
26
26
skia_enable_skrive = true
27
27
skia_enable_sksl_interpreter = is_skia_dev_build
28
- skia_enable_skvm_jit =
29
- is_skia_dev_build &&
30
- ((target_cpu == " x64" && (is_linux || is_mac || is_win )) ||
31
- (target_cpu == " arm64" && is_android ))
28
+ skia_enable_skvm_jit_when_possible = is_skia_dev_build
32
29
skia_enable_tools = is_skia_dev_build
33
30
skia_enable_gpu_debug_layers = is_skia_dev_build && is_debug
34
31
skia_generate_workarounds = false
Original file line number Diff line number Diff line change 19
19
20
20
class SkWStream ;
21
21
22
+ #if defined(SKVM_JIT_WHEN_POSSIBLE)
23
+ #if defined(__x86_64__) || defined(_M_X64)
24
+ #if defined(_WIN32) || defined(__linux) || defined(__APPLE__)
25
+ #define SKVM_JIT
26
+ #endif
27
+ #endif
28
+ #if defined(__aarch64__)
29
+ #if defined(__ANDROID__)
30
+ #define SKVM_JIT
31
+ #endif
32
+ #endif
33
+ #endif
34
+
22
35
#if 0
23
36
#define SKVM_LLVM
24
37
#endif
You can’t perform that action at this time.
0 commit comments