mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-09 20:25:34 -05:00
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
24 lines
687 B
C++
24 lines
687 B
C++
// Part of the Concrete Compiler Project, under the BSD3 License with Zama
|
|
// Exceptions. See
|
|
// https://github.com/zama-ai/concrete-compiler-internal/blob/master/LICENSE.txt
|
|
// for license information.
|
|
|
|
#ifndef CONCRETELANG_SUPPORT_LLVMEMITFILE
|
|
#define CONCRETELANG_SUPPORT_LLVMEMITFILE
|
|
|
|
namespace mlir {
|
|
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,
|
|
llvm::Optional<std::vector<std::string>> extraArgs = {});
|
|
|
|
} // namespace concretelang
|
|
} // namespace mlir
|
|
|
|
#endif |