[cfe-commits] r141181 - /cfe/trunk/lib/Frontend/CompilerInstance.cpp
Douglas Gregor
dgregor at apple.com
Wed Oct 5 11:08:15 PDT 2011
Sent from my iPhone
On Oct 5, 2011, at 10:48 AM, Chris Lattner <clattner at apple.com> wrote:
>
> On Oct 5, 2011, at 7:59 AM, Douglas Gregor wrote:
>
>> Author: dgregor
>> Date: Wed Oct 5 09:59:36 2011
>> New Revision: 141181
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=141181&view=rev
>> Log:
>> Seriously ugly hack, part 2
>
> *cough* libsystem :)
I'll move it there once I get it right.
> -Chris
>
>>
>> Modified:
>> cfe/trunk/lib/Frontend/CompilerInstance.cpp
>>
>> Modified: cfe/trunk/lib/Frontend/CompilerInstance.cpp
>> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/CompilerInstance.cpp?rev=141181&r1=141180&r2=141181&view=diff
>> ==============================================================================
>> --- cfe/trunk/lib/Frontend/CompilerInstance.cpp (original)
>> +++ cfe/trunk/lib/Frontend/CompilerInstance.cpp Wed Oct 5 09:59:36 2011
>> @@ -47,6 +47,9 @@
>> #include <sys/types.h>
>> #include <sys/stat.h>
>>
>> +#if LLVM_ON_WIN32
>> +#include <windows.h>
>> +#endif
>> #if LLVM_ON_UNIX
>> #include <unistd.h>
>> #endif
>> @@ -894,8 +897,11 @@
>> // finish up and
>> // FIXME: Should we hook in to system APIs to get a notification when the
>> // lock file is deleted?
>> +#if LLVM_ON_WIN32
>> + Sleep(Interval);
>> +#else
>> nanosleep(&Interval, NULL);
>> -
>> +#endif
>> // If the file no longer exists, we're done.
>> bool Exists = false;
>> if (!llvm::sys::fs::exists(LockFileName.str(), Exists) && !Exists)
>>
>>
>> _______________________________________________
>> cfe-commits mailing list
>> cfe-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
More information about the cfe-commits
mailing list