json2cmake icon indicating copy to clipboard operation
json2cmake copied to clipboard

Handle -i{system,quote} without space before path

Open dobo90 opened this issue 5 years ago • 0 comments

  • Although manual doesn't specify this it is allowed to pass -isystem or -iquote like this: -isystem/opt/lib

  • If space is present before path, keep the current logic.

  • Simple test (checked with gcc 9.1.0 and 5.3.0):

    mkdir -p /tmp/lib touch /tmp/lib/inc.h

    cat <<EOF > test.c #include "inc.h"

    int main(void) { return 0; } EOF

    gcc -isystem/tmp/lib test.c -o test

dobo90 avatar Sep 24 '19 19:09 dobo90