Skip to content

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

@derek-gerstmann

Description

@derek-gerstmann

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?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions