diff --git a/offload/DeviceRTL/CMakeLists.txt b/offload/DeviceRTL/CMakeLists.txt index 3da83e5c30713..b52305b9516fb 100644 --- a/offload/DeviceRTL/CMakeLists.txt +++ b/offload/DeviceRTL/CMakeLists.txt @@ -131,7 +131,7 @@ set(bc_flags -c -foffload-lto -std=c++17 -fvisibility=hidden -DOMPTARGET_DEVICE_RUNTIME -I${include_directory} -I${devicertl_base_directory}/../include - -I${LLVM_MAIN_SRC_DIR}/../libc + -I${devicertl_base_directory}/../../libc ${LIBOMPTARGET_LLVM_INCLUDE_DIRS_DEVICERTL} ) @@ -276,7 +276,7 @@ function(compileDeviceRTLLibrary target_cpu target_name target_triple) target_compile_definitions(${ide_target_name} PRIVATE SHARED_SCRATCHPAD_SIZE=512) target_include_directories(${ide_target_name} PRIVATE ${include_directory} - ${LLVM_MAIN_SRC_DIR}/../libc + ${devicertl_base_directory}/../../libc ${devicertl_base_directory}/../include ${LIBOMPTARGET_LLVM_INCLUDE_DIRS} )