Skip to content
Merged
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
3 changes: 1 addition & 2 deletions deps/build.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ using UUIDs
##

const libpoplar_dir = joinpath(get_scratch!(UUID(TOML.parsefile(joinpath(dirname(@__DIR__), "Project.toml"))["uuid"]), "libpoplar"), "v$(Base.thispatch(VERSION))")
const cxx = get(ENV, "CXX", "g++")
const allowed_namespaces = ("poplar", "popops")

# TODO: I really shouldn't be using strings everywhere for these
Expand All @@ -34,7 +35,6 @@ DefaultBindgenContext() = DefaultBindgenContext([], [], Set([]), Set([]), "", ""


function get_system_includes()::Vector{String}
cxx = get(ENV, "CXX", "g++")
io = IOBuffer()
readchomp(pipeline(`$(cxx) -x c++ -E -Wp,-v - -fsyntax-only`; stdin=IOBuffer(""), stderr=io))
m = match(r"#include <\.\.\.> search starts here:(.*)End of search list\."s, String(take!(io)))[1]
Expand Down Expand Up @@ -640,7 +640,6 @@ function build_bindings(; path::String=joinpath(libpoplar_dir, "libpoplar_julia.

if compile
cxxwrap_include_dir = joinpath(libcxxwrap_julia_jll.artifact_dir, "include")
cxx = get(ENV, "CXX", "g++-10")
julia_include_dir = joinpath(dirname(Sys.BINDIR), "include", "julia")
mkpath(dirname(path))
run(```
Expand Down