Skip to content

Commit bbc7b83

Browse files
authored
fix replace deprecation in julia-config (#25288)
1 parent ea5b0a3 commit bbc7b83

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

contrib/julia-config.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const options = [
1111
threadingOn() = ccall(:jl_threading_enabled, Cint, ()) != 0
1212

1313
function shell_escape(str)
14-
str = replace(str, "'", "'\''")
14+
str = replace(str, "'" => "'\''")
1515
return "'$str'"
1616
end
1717

examples/embedding/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ $(BIN)/LocalModule.jl: $(SRCDIR)/LocalModule.jl
4646
endif
4747

4848
check: $(BIN)/embedding$(EXE) $(BIN)/LocalModule.jl
49-
$(JULIA) $(SRCDIR)/embedding-test.jl $<
49+
$(JULIA) --depwarn=error $(SRCDIR)/embedding-test.jl $<
5050
@echo SUCCESS
5151

5252
clean:

0 commit comments

Comments
 (0)