How to compile .erl files in parallel with mix?

Hello.

We currently have 8 rather large generate .erl files as part of our project, and we observe that mix seems to trigger their compilation utilizing only 1 core. The machine has 16. We would like to parallelize this more.

I am not sure if the erlc compiler can parallelize, I’m trying to understand this better. If so, how could I trigger it?

If erlc can’t parallelize, I think I still would be better off compiling these 8 files in parallel instead by starting 8 instances of erlc instead of one. They have no dependencies to each other, each is one self-contained ASN.1 codec made with asn1ct. How would I go about this?

Thank you.