Skip to content

Commit

Permalink
spirv-llvm-translator: build shared libraries
Browse files Browse the repository at this point in the history
This follows Homebrew policy on shared vs static libraries.[^1]

[^1]: https://docs.brew.sh/Acceptable-Formulae#shared-vs-static-libraries
  • Loading branch information
carlocab committed Sep 24, 2024
1 parent 5c42684 commit a059f33
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Formula/s/spirv-llvm-translator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ def llvm
def install
ENV.append "LDFLAGS", "-Wl,-rpath,#{rpath(target: llvm.opt_lib)}" if OS.linux?
system "cmake", "-S", ".", "-B", "build",
"-DBUILD_SHARED_LIBS=ON",
"-DCMAKE_INSTALL_RPATH=#{rpath}",
"-DLLVM_BUILD_TOOLS=ON",
"-DLLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR=#{Formula["spirv-headers"].opt_prefix}",
*std_cmake_args
Expand Down

0 comments on commit a059f33

Please sign in to comment.