diff --git a/gen/generator.jl b/gen/generator.jl index 568d391..06e27f9 100644 --- a/gen/generator.jl +++ b/gen/generator.jl @@ -14,7 +14,8 @@ options = load_options(joinpath(@__DIR__, "generator.toml")) args = get_default_args() push!(args, "-I$include_dir") # XXX: this is a hack but necessary in order to avoid an error about the QkGate -# enum being defined as two different things. +# enum being defined as two different things. See upstream PR at +# https://github.com/mozilla/cbindgen/pull/1156 push!(args, "-D__cplusplus") headers = [joinpath(include_dir, "qiskit.h")]