fix(macos): update dependency after compiling dylib

when dellocate is used to include dependencies in python wheels, the
runtime library will have an id that is prefixed with /DLC, and that path
doesn't exist. So when generated libraries won't be able to find it
during load time. To solve this, we change the dep in the generated
library to be relative to the rpath which should be set correctly during
linking. This shouldn't have an impact when /DLC/concrete/.dylibs/* isn't
a dependecy in the first place (when not using python).

also set rpath when linking to RT lib
This commit is contained in:
youben11
2022-04-12 12:17:42 +01:00
committed by Ayoub Benaissa
parent d7440f15c0
commit af300055a7
2 changed files with 52 additions and 3 deletions

View File

@@ -11,6 +11,8 @@ namespace concretelang {
llvm::Error emitObject(llvm::Module &module, std::string objectPath);
llvm::Error callCmd(std::string cmd);
llvm::Error
emitLibrary(std::vector<std::string> objectsPath, std::string libraryPath,
std::string linker,