mirror of
https://github.com/intel/llvm.git
synced 2026-01-13 11:02:04 +08:00
[OpenMP] Fix undefined symbol for Darwin builds (#170999)
cf. https://github.com/llvm/llvm-project/pull/168554#issuecomment-3617253169
This commit is contained in:
committed by
GitHub
parent
7c832fca53
commit
33d779dfbf
@@ -1569,7 +1569,7 @@ int FTN_STDCALL KMP_EXPAND_NAME(FTN_GET_DEVICE_FROM_UID)(const char *device_uid)
|
||||
int FTN_STDCALL
|
||||
KMP_EXPAND_NAME(FTN_GET_DEVICE_FROM_UID)(const char *device_uid) {
|
||||
#if KMP_OS_DARWIN || KMP_OS_WASI || defined(KMP_STUB)
|
||||
return omp_invalid_device;
|
||||
return -2; // omp_invalid_device, see definition in omp.h
|
||||
#else
|
||||
int (*fptr)(const char *);
|
||||
if ((*(void **)(&fptr) = KMP_DLSYM_NEXT("omp_get_device_from_uid")))
|
||||
|
||||
Reference in New Issue
Block a user