From ebbf5675f91ee80b441105a3ecd0c71a8a0a40b4 Mon Sep 17 00:00:00 2001 From: German Andryeyev Date: Thu, 22 Apr 2021 13:57:26 -0400 Subject: [PATCH] SWDEV-86035 - Make sure the legacy lib is loaded with PAL backend Change-Id: I5b48778c2e48549afb3fd69b0a316989c01faaef [ROCm/clr commit: 14a6ec2c59e3725fd48e9e0110c09df7c555d601] --- projects/clr/rocclr/utils/flags.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/projects/clr/rocclr/utils/flags.cpp b/projects/clr/rocclr/utils/flags.cpp index 2685736776..2370062581 100644 --- a/projects/clr/rocclr/utils/flags.cpp +++ b/projects/clr/rocclr/utils/flags.cpp @@ -87,8 +87,12 @@ std::atomic_bool IS_PROFILER_ON(false); #if defined(WITH_GPU_DEVICE) bool IS_LEGACY = true; #else +#if !defined(_WIN32) && defined(WITH_PAL_DEVICE) +bool IS_LEGACY = true; +#else bool IS_LEGACY = false; #endif +#endif // static char* Flag::envstr_;