You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
flambda-backend: Implement -no-approx and -no-code in flambda-backend ocamlobjinfo (#2737)
* Implement `-no-approx` and `-no-code` in flambda-backend `ocamlobjinfo`
The old `-no-approx` and `-no-code` options are currently parsed but ignored.
This is inconvenient, since the output for an flambda2 .cmx can be screenfuls
long even for relatively small modules.
This PR implements `-no-approx` by just suppressing .cmx export information
altogether (roughly equivalent to what the old one did).
Also implements `-no-code` by doing exactly the same thing as
`-no-approx`. (Which does indeed mean there's no code.)
* Also suppress zero-alloc info
It's not as noisy as the full export info but it does make tests more sensitive.
* Add conditional printing to Flambda_cmx_format
* Better condition
* Add a test case with `-no-code` but not `-no-approx`
This exercises the separate `-no-approx` implementation from
lukemaurer#2.
---------
Co-authored-by: Vincent Laviron <[email protected]>
0 commit comments