compute-runtime/shared/source/os_interface/linux/os_library_helper.cpp

22 lines
455 B
C++

/*
* Copyright (C) 2021-2023 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/debug_settings/debug_settings_manager.h"
#include "shared/source/os_interface/linux/os_library_linux.h"
#include <dlfcn.h>
namespace NEO {
namespace Linux {
void adjustLibraryFlags(int &dlopenFlag) {
if (debugManager.flags.DisableDeepBind.get()) {
dlopenFlag &= ~RTLD_DEEPBIND;
}
}
} // namespace Linux
} // namespace NEO