This is a barebones GYP file to compile 1 C source file. We are demonstrating that the cflags parameter in gyp files gets completely ignored :(
$ ../gyp/gyp -f make --depth=. hello.gyp
$ V=1 make
cc -fasm-blocks -mpascal-strings -Os -gdwarf-2 -MMD -MF out/Default/.deps/out/Default/obj.target/hello/hello.o.d.raw -c -o out/Default/obj.target/hello/hello.o hello.c
./gyp-mac-tool flock out/Default/linker.lock g++ -Lout/Default -o "out/Default/hello" out/Default/obj.target/hello/hello.o
LINK(target) out/Default/hello: FinishedWe would expect a -ObjC flag to be present somewhere in the cc command, but it's not...
cflags only seems to be supported for Scons.
This works both with make and xcode generators on Mac: