Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/bender-slang/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ include(FetchContent)
FetchContent_Declare(
slang
GIT_REPOSITORY https://github.com/MikePopoloski/slang.git
GIT_TAG v10.0
GIT_TAG v11.0
GIT_SHALLOW TRUE
)
FetchContent_MakeAvailable(slang)
Expand Down
11 changes: 6 additions & 5 deletions crates/bender-slang/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,15 @@ fn main() {
println!("cargo:rustc-link-lib=static=svlang");

// Link the additional libraries based on build profile.
let (fmt_lib, mimalloc_lib) = match (target_env.as_str(), build_profile.as_str()) {
("msvc", _) => ("fmt", "mimalloc"),
(_, "debug") => ("fmtd", "mimalloc-debug"),
_ => ("fmt", "mimalloc"),
// Slang v11 bundles mimalloc directly into libsvlang.a (via mimalloc-obj),
// so only fmt needs an explicit link line.
let fmt_lib = match (target_env.as_str(), build_profile.as_str()) {
("msvc", _) => "fmt",
(_, "debug") => "fmtd",
_ => "fmt",
};

println!("cargo:rustc-link-lib=static={fmt_lib}");
println!("cargo:rustc-link-lib=static={mimalloc_lib}");

if target_os == "windows" {
println!("cargo:rustc-link-lib=advapi32");
Expand Down
2 changes: 1 addition & 1 deletion crates/bender-slang/cpp/rewriter.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) 2025 ETH Zurich
// Tim Fischer <fischeti@iis.ee.ethz.ch>

#include "slang/syntax/SyntaxVisitor.h"
#include "slang/syntax/SyntaxRewriter.h"
#include "slang_bridge.h"

#include <unordered_map>
Expand Down
Loading