tsoding / bm

Simple compiler ecosystem
MIT License
163 stars 16 forks source link

(nobuild) Build script doesn't support additional compiler flags #377

Open zhiayang opened 3 years ago

zhiayang commented 3 years ago

On some platforms (cough old-ass Solaris cough), the C compiler might default to generating 32-bit code, which obviously doesn't work for bm. Ideally, we would be able to do something like this:

CC="cc -m64" nobuild test

but that won't work, because nobuild passes the entire string "cc -m64" to execvp, which obviously doesn't exist.

rexim commented 3 years ago

@zhiayang oh! Thank you for reporting this use case! I'll see what we can do about it!