janet-lang / jpm

Janet Project Manager
MIT License
72 stars 22 forks source link

clang-14: error: unknown argument: '-02' #53

Closed justinsantoro closed 2 years ago

justinsantoro commented 2 years ago

When running jpm install sh I got the above error.

I tracked it down to this line which was recently added: https://github.com/janet-lang/jpm/blob/4b9b6fb55ba6fdefcf78bb8959640862ce472c76/jpm/cc.janet#L66 looks like a typo - should be -O2

To confirm, I made the change locally, ran janet bootstrap.janet, then jpm install sh and it installed correctly this time.

https://github.com/andrewchambers/janet-posix-spawn/issues/3