Re: Xcode & Dtrace USDT Building
Re: Xcode & Dtrace USDT Building
- Subject: Re: Xcode & Dtrace USDT Building
- From: Scott Tooker <email@hidden>
- Date: Thu, 1 May 2008 10:40:51 -0700
Are you certain you need the shell script? I notice that Xcode 3.0 has
an entry in the Rules tab of the target inspector to deal with Dtrace
source files. If that doesn't work, I'd recommend creating a custom
build rule for the .d files and then add the files to the source build
phase (that way the output file will get handed to the link build
phase).
Scott
On Apr 30, 2008, at 5:43 PM, Lally Singh wrote:
Hey all,
I've got a project that compiles on both Solaris and OSX. Only
problem is that I've got some USDT probes added on the Solaris side
I'd like to work on OS X. The D file torque_provider.d contains all
my probes.
I have the following shell script run in my XCode build:
echo dtrace -G -32 -s $PROJECT_DIR/torque_provider.d `find
$OBJECT_FILE_DIR -name '*.o'`
dtrace -G -32 -s $PROJECT_DIR/torque_provider.d `find $OBJECT_FILE_DIR
-name '*.o'`
Only thing is, I don't know how to link against torque_provider.o,
which dtrace generates. I'm sure it's simple, but I've lost my edge
working with xcode.
Any ideas? Thanks in advance!
--
H. Lally Singh
Ph.D. Candidate, Computer Science
Virginia Tech
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden