File tree 3 files changed +5
-0
lines changed 3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -134,6 +134,7 @@ let optimize
134
134
(" wasm-opt"
135
135
:: (common_options ()
136
136
@ (if Config.Flag. trap_on_exception () then [] else [ " --traps-never-happen" ])
137
+ @ (if Config.Flag. use_new_eh () then [ " --translate-to-new-eh" ] else [] )
137
138
@ Option. value ~default: optimization_options.(level - 1 ) options
138
139
@ [ Filename. quote input_file; " -o" ; Filename. quote output_file ])
139
140
@ opt_flag " --input-source-map" opt_input_sourcemap
Original file line number Diff line number Diff line change @@ -105,6 +105,8 @@ module Flag = struct
105
105
let wasi = o ~name: " wasi" ~default: false
106
106
107
107
let trap_on_exception = o ~name: " trap-on-exception" ~default: false
108
+
109
+ let use_new_eh = o ~name: " use-new-eh" ~default: false
108
110
end
109
111
110
112
module Param = struct
Original file line number Diff line number Diff line change @@ -80,6 +80,8 @@ module Flag : sig
80
80
81
81
val trap_on_exception : unit -> bool
82
82
83
+ val use_new_eh : unit -> bool
84
+
83
85
val enable : string -> unit
84
86
85
87
val disable : string -> unit
You can’t perform that action at this time.
0 commit comments