Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Halide_BUNDLE_LLVM doesn't work with universal builds on OSX #8134

Open
derek-gerstmann opened this issue Mar 4, 2024 · 1 comment
Open

Comments

@derek-gerstmann
Copy link
Contributor

It appears that bundle_static() in dependencies\llvm\CMakeLists.txt:140 is only injecting the arm64 libs from a universal build of LLVM, when Halide is also configured as a universal build (via CMAKE_OSX_ARCHITECTURES="x86_64;arm64").

The LLVM x86_64 libs are not getting bundled, resulting in missing symbols that show up when linking against libHalide.a:

Undefined symbols for architecture x86_64:
"_LLVMInitializeAArch64AsmParser", 
"..."

I'm not entirely sure why only the arm64 libs get bundled. Is the llvm_map_components_to_libnames provided with the LLVM project skipping them?

@derek-gerstmann
Copy link
Contributor Author

@alexreinking Any thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant