Distros like Gentoo use dynamic libLLVM.so instead of separated, static llvm component libs. Add a switch to choose linking libLLVM.so.
kfdtest cannot be built due to:
mold: error: undefined symbol: hsaKmtCheckRuntimeDebugSupport
>>> referenced by KFDDBGTest.cpp
>>> CMakeFiles/kfdtest.dir/src/KFDDBGTest.cpp.o:(KFDDBGTest_AttachToSpawnedProcess_Test::TestBody())>>> referenced by KFDDBGTest.cpp
>>> CMakeFiles/kfdtest.dir/src/KFDDBGTest.cpp.o:(KFDDBGTest_AttachToRunningProcess_Test::TestBody())>>> referenced by KFDDBGTest.cpp
>>> CMakeFiles/kfdtest.dir/src/KFDDBGTest.cpp.o:(KFDDBGTest_HitTrapEvent_Test::TestBody())>>> referenced 4 more times
collect2: error: ld returned 1 exit status
Turns out hsaKmtCheckRuntimeDebugSupport is a hidden symbol. Fix that to make kfdtest build successfully
Distros like Gentoo use dynamic libLLVM.so instead of separated, static llvm component libs. Add a switch to choose linking libLLVM.so.
kfdtest cannot be built due to:
Turns out hsaKmtCheckRuntimeDebugSupport is a hidden symbol. Fix that to make kfdtest build successfully