Summary

make -emit-inline-file always write a file

Metadata

Attachments

Description

presently, -emit-inline-file will not emit a file, and will delete one if it exists, if there are no exported procedures that can be inlined. this means in a pattern where you always emit for every -unit, and always consult for every -uses, compilation will halt if a file isn't found

it's a matter of opinion what the right thing to do here is, but I'm inclined to think a file should always be emitted if the flag is passed, even it's empty, because:

note the deletion/omission behavor was added on purpose in 2010, so this isn't accidental, but I'm not sure the reasoning

tested on platform=LINUX

Changes and comments

[2020-08-15 21:55:06 UTC] alicemaz attached emit-inline.patch (description=#f)

[2020-08-23 12:14:06 UTC] megane changed status from new to closed

[2020-08-23 12:14:06 UTC] megane set resolution to fixed

[2020-08-23 12:14:06 UTC] megane wrote:

Closed by 5df4ce1939c7450dfa481172204b6c898505e7a5