sm
This commit is contained in:
@@ -7,7 +7,7 @@ pub fn build(b: *std.Build) void {
|
||||
const optimize = b.standardOptimizeOption(.{});
|
||||
|
||||
const static_llvm = b.option(bool, "static-llvm", "Statically link LLVM (self-contained binary, no LLVM needed at runtime)") orelse false;
|
||||
const llvm_prefix = b.option([]const u8, "llvm-prefix", "Path to LLVM installation") orelse "/opt/homebrew/opt/llvm@18";
|
||||
const llvm_prefix = b.option([]const u8, "llvm-prefix", "Path to LLVM installation") orelse "/opt/homebrew/opt/llvm@19";
|
||||
|
||||
const include_dir = b.fmt("{s}/include", .{llvm_prefix});
|
||||
const lib_dir = b.fmt("{s}/lib", .{llvm_prefix});
|
||||
@@ -136,7 +136,7 @@ pub fn build(b: *std.Build) void {
|
||||
mod.link_libcpp = true;
|
||||
}
|
||||
} else {
|
||||
mod.linkSystemLibrary("LLVM-18", .{});
|
||||
mod.linkSystemLibrary("LLVM-19", .{});
|
||||
mod.linkSystemLibrary("clang-cpp", .{});
|
||||
// clang-cpp is C++ — need libc++ on macOS
|
||||
if (target_os != .windows and target_os != .linux) {
|
||||
|
||||
Reference in New Issue
Block a user