[lldb-dev] Building lldb on Mac command line

jingham at apple.com jingham at apple.com
Tue Jun 18 15:50:26 PDT 2013

Note, if you are ssh'ed into the machine you are trying to run the testsuite on on Mac OS X, you'll have to run it as root, otherwise you won't be able to launch processes in the debugger.  There's a shaggy dog story relating to that which is about as worth listening to as all other shaggy dog stories.

You can use the -R option to relocate the test output files (normally these get written to the test directory) to keep root from leaving files in your source directory.


On Jun 18, 2013, at 3:44 PM, Greg Clayton <gclayton at apple.com> wrote:

> cd lldb/test
> caffeinate ./dotest.py --compiler `xcrun -find clang`
> "caffeinate" will stop your machine from going to sleep while running the test suite if you leave it and the screen saver comes on. We use the default Xcode compile by specifying "--compiler `xcrun -find clang`".
> Greg
> On Jun 18, 2013, at 3:33 PM, Mike Sartain <mikesart at valvesoftware.com> wrote:
>> From: Greg Clayton [gclayton at apple.com]
>>> If you edit your Xcode application preferences and set them like this:
>>> ...
>> If anyone has a problem with Xcode consistently crashing when you try to modify those settings, it will work if you don't have a project open. At least that was the case on my machine.
>> I also ran into the "user interaction is not allowed" failure when building debugserver. Perhaps this is because I'm ssh'd to the box now? In any case, I google'd a bit, and came across this solution:
>> http://stackoverflow.com/questions/577750/running-xcodebuild-from-a-forked-terminal
>> Ran this:  security unlock-keychain /Users/mikesart/Library/Keychains/login.keychain
>> And can now build. If that's not ok, please let me know.
>> So what is the best way to run the build verification tests on the Mac from the command line? I've tried various -scheme "Run Testsuite" type things, but nothing seems to happen. Just run dotest.py from the test directory?
>> Thanks.
>> -Mike
> _______________________________________________
> lldb-dev mailing list
> lldb-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev

More information about the lldb-dev mailing list