pure-c / purec

C backend for PureScript
232 stars 8 forks source link

Translate corefn.json in parallel #46

Open felixSchl opened 5 years ago

felixSchl commented 5 years ago

Update the mk/target.mk file to have a one-to-one mapping from corefn.json to a .c file, something like: %.c: %/corefn.json. That means Make can compile the corefn jsons into C files in parallel using its' -j flag.

felixSchl commented 5 years ago

Alternatively (or additionally), we can add support for translating corefn.jsons in parallel internally. It should be fairly easy to add this support and the current CLI already takes in a list of items to process (as opposed to just one), so it arguable falls in the scope of the utility.