jwiegley / c2hsc

Utility for creating .hsc files from C API header files
BSD 3-Clause "New" or "Revised" License
27 stars 15 forks source link

Fix bad behavior when --cppopts unspecified #4

Closed bsl closed 11 years ago

bsl commented 11 years ago

Because I wasn't specifying --cppopts, 'cppopts opts' was "", so the first value given to language-c's runPreprocessor was [""]. This caused language-c to run gcc with ["-o","/tmp/xxx.i","-E","xxx.h",""](note the final), which caused gcc to die with "error: : No such file or directory".