Skip to content

Commit a4880a4

Browse files
committed
Add sjlj flag to clang when targeting win32
1 parent 65d6001 commit a4880a4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Runner.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,9 @@ function generate_compiler_wrappers!(platform::AbstractPlatform; bin_path::Abstr
433433
"-isystem /opt/$(aatriplet(p))/$(aatriplet(p))/include",
434434
"-isystem /opt/$(aatriplet(p))/$(aatriplet(p))/sys-root/include"])
435435
end
436-
436+
if Sys.iswindows(p) && nbits(p) == 32
437+
push!(flags, "-fsjlj-exceptions")
438+
end
437439
return flags
438440
end
439441

0 commit comments

Comments
 (0)