Skip to content

Commit e9a6b69

Browse files
committed
Don't restrict input types of compile_executable functions; we need to modify these to avoid problems with argv pointers in the future
1 parent e8d6bfc commit e9a6b69

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/StaticCompiler.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ function compile_executable(f, types=(), path::String="./", name=GPUCompiler.saf
231231
kwargs...)
232232

233233
tt = Base.to_tuple_type(types)
234-
tt == Tuple{} || tt == Tuple{Int, Ptr{Ptr{UInt8}}} || error("input type signature $types must be either () or (Int, Ptr{Ptr{UInt8}})")
234+
# tt == Tuple{} || tt == Tuple{Int, Ptr{Ptr{UInt8}}} || error("input type signature $types must be either () or (Int, Ptr{Ptr{UInt8}})")
235235

236236
rt = only(native_code_typed(f, tt))[2]
237237
isconcretetype(rt) || error("$f$types did not infer to a concrete type. Got $rt")

0 commit comments

Comments
 (0)