File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -342,6 +342,12 @@ let nolabels_attribute attr =
342
342
clflags_attribute_without_payload attr
343
343
~name: " nolabels" Clflags. classic
344
344
345
+ let flambda_oclassic_attribute attr =
346
+ clflags_attribute_without_payload' attr
347
+ ~name: " flambda_oclassic"
348
+ ~f: (fun () ->
349
+ if Config. flambda || Config. flambda2 then Clflags. set_oclassic () )
350
+
345
351
let flambda_o3_attribute attr =
346
352
clflags_attribute_without_payload' attr
347
353
~name: " flambda_o3"
@@ -378,4 +384,5 @@ let parse_standard_implementation_attributes attr =
378
384
nolabels_attribute attr;
379
385
inline_attribute attr;
380
386
afl_inst_ratio_attribute attr;
381
- flambda_o3_attribute attr
387
+ flambda_o3_attribute attr;
388
+ flambda_oclassic_attribute attr
Original file line number Diff line number Diff line change 31
31
- ocaml.inline
32
32
- ocaml.afl_inst_ratio
33
33
- ocaml.flambda_o3
34
+ - ocaml.flambda_oclassic
34
35
35
36
{b Warning:} this module is unstable and part of
36
37
{{!Compiler_libs}compiler-libs}.
@@ -88,4 +89,4 @@ val has_unboxed: Parsetree.attributes -> bool
88
89
val has_boxed : Parsetree .attributes -> bool
89
90
90
91
val parse_standard_interface_attributes : Parsetree .attribute -> unit
91
- val parse_standard_implementation_attributes : Parsetree .attribute -> unit
92
+ val parse_standard_implementation_attributes : Parsetree .attribute -> unit
You can’t perform that action at this time.
0 commit comments