Zulip Chat Archive

Stream: lean4

Topic: Lean server `-D` settings


Mac (Aug 29 2021 at 02:20):

Does the Lean server not forward -D option settings onto its file workers? Is this a bug? To test, try passing something like -Dtrace.compiler.ir.result=true to the server and you will not see any compiler results.

Mac (Aug 29 2021 at 02:24):

From the code for the -D option in lean.cpp, it appears that they are not in fact forwarded to the workers (as they are not appended to the forwarded_args array). I imagine it would need a line like the following to do so:

forwarded_args.push_back(string_ref("-D" + std::string(optarg)));

Wojciech Nawrocki (Aug 29 2021 at 08:39):

Yep, only some options are forwarded and -D is not. It would probably be reasonable to forward it as well.


Last updated: Dec 20 2023 at 11:08 UTC