What's the right way to set java compiler flags no...
# general
h
What's the right way to set java compiler flags now? What with
Zinc argument '"+['-C-parameters']"' is not supported, and is subject to change/removal!
?
h
Cc @aloof-angle-91616 (I think)
w
@happy-kitchen-89482: compiler_options_sets
i think that the PR might still be the best documentation though, unfortunately: https://github.com/pantsbuild/pants/issues/5360
the definitions of options are on
./pants help-advanced compile.zinc
and
./pants help-advanced java
but actually...
for options you want on all targets, you just want
--compile-zinc-args
. you're likely seeing that warning because you changed the value of
Copy code
--compile-zinc-whitelisted-args="{'key1':val1,'key2':val2,...}" (default: { '-S.*':'False','-C.*':'False','-file-filter':'True','-msg-filter':'True' })
    A dict of option regexes that make up pants' supported API for zinc. Options
    not listed here are subject to change/removal. The value of the dict
    indicates that an option accepts an argument.
perhaps?
oh. or because that's just an invalid arg, and so it's not matching the regex
h
hmm, yes, I had to wrap with double-quotes for some reason, but possibly not really.