« Simple fix for NSCFBoolean hash problem | Main | MulleSybaseEOAdaptor 2.7 Releasenotes »

xcodebuild drives me nuts, or is it the unix shell ?

I want to pass OTHER_CFLAGS into the build system. xcodebuild "OTHER_CFLAGS=-DFOO=1" works nicely. My problem is that I don't want FOO to be a number, I want it to be a string. It's not a problem of gcc, it can do it
aden:/tmp nat$ cat main.c
main()
{
   printf( "%s\n", FOO);
}
aden:/tmp nat$ cc -w -DFOO='"VfL Bochum"' main.c -o main ; ./main
VfL Bochum
But I can't get xcodebuild to preserve the quoting no matter how I try.

About

This page contains a single entry from the blog posted on May 11, 2006 3:51 PM.

The previous post in this blog was Simple fix for NSCFBoolean hash problem.

The next post in this blog is MulleSybaseEOAdaptor 2.7 Releasenotes.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type 3.34