File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -381,7 +381,12 @@ std::string& set_and_get_pipeline_cache_data_path(
381
381
const std::string& file_path) {
382
382
// The global cache data path is declared as a static local variable for the
383
383
// same reasons as the global runtime below.
384
+ #if defined(ETVK_DEFAULT_CACHE_PATH)
385
+ static std::string global_cache_data_path = ETVK_DEFAULT_CACHE_PATH;
386
+ #else
384
387
static std::string global_cache_data_path;
388
+ #endif /* ETVK_DEFAULT_CACHE_PATH */
389
+
385
390
if (file_path.size () > 0 ) {
386
391
global_cache_data_path = file_path;
387
392
}
Original file line number Diff line number Diff line change @@ -170,6 +170,10 @@ def define_common_targets(is_fbcode = False):
170
170
"ovr_config//os:macos" : mac_flags ,
171
171
})
172
172
173
+ etvk_default_cache_path = read_config ("etvk" , "default_cache_path" , "" )
174
+ if etvk_default_cache_path != "" :
175
+ VK_API_PREPROCESSOR_FLAGS += ["-DETVK_DEFAULT_CACHE_PATH={}" .format (etvk_default_cache_path )]
176
+
173
177
debug_mode = read_config ("etvk" , "debug" , "0" ) == "1"
174
178
if debug_mode :
175
179
VK_API_PREPROCESSOR_FLAGS += ["-DVULKAN_DEBUG" ]
You can’t perform that action at this time.
0 commit comments