Skip to content

Commit 35e5889

Browse files
Do not use sed
1 parent 20071e7 commit 35e5889

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

deps/build.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,8 @@ ctx = create_context(headers, args, options)
2525
# run generator
2626
build!(ctx)
2727

28-
run(`sed -i '' 's/const c_complex = ComplexF32/const c_complex = ComplexF64/g' $(joinpath(@__DIR__, "../src/C_API.jl"))`)
28+
# Replace line 28 with:
29+
file_path = joinpath(@__DIR__, "../src/C_API.jl")
30+
content = read(file_path, String)
31+
content = replace(content, "const c_complex = ComplexF32" => "const c_complex = ComplexF64")
32+
write(file_path, content)

0 commit comments

Comments
 (0)