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_;