Skip to content

Commit afc8e98

Browse files
committed
Make Julia 1.11 work
1 parent ded0163 commit afc8e98

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/embedding_wrapper.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,10 @@ int main(int argc, char *argv[]) {
105105
jl_value_t *firstarg = checked_eval_string("popfirst!(ARGS)");
106106
JL_GC_PUSH1(&firstarg);
107107
jl_sym_t *var = jl_symbol("PROGRAM_FILE");
108-
#if JULIA_VERSION_MAJOR == 1 && JULIA_VERSION_MINOR >= 10
108+
#if JULIA_VERSION_MAJOR == 1 && JULIA_VERSION_MINOR >= 11
109+
jl_binding_t *bp = jl_get_binding_wr(jl_base_module, var, 1);
110+
jl_checked_assignment(bp, jl_base_module, var, firstarg);
111+
#elif JULIA_VERSION_MAJOR == 1 && JULIA_VERSION_MINOR >= 10
109112
jl_binding_t *bp = jl_get_binding_wr(jl_base_module, var);
110113
jl_checked_assignment(bp, jl_base_module, var, firstarg);
111114
#elif JULIA_VERSION_MAJOR == 1 && JULIA_VERSION_MINOR >= 9

0 commit comments

Comments
 (0)