quantrs2-core 0.1.0-alpha.5

Core types and traits for the QuantRS2 quantum computing framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
fn main() {
    // Check if running on macOS
    if cfg!(target_os = "macos") {
        // Fix C++ standard library linking on macOS
        // Use libc++ instead of libstdc++
        println!("cargo:rustc-link-lib=c++");

        // Set environment variables to influence symengine compilation
        println!("cargo:rustc-env=CXXFLAGS=-stdlib=libc++");
        println!("cargo:rustc-env=LDFLAGS=-lc++");

        // C++ linking fix applied for macOS
    }
}