disable all demos for premake4 iOS build (it only compiles HelloWorld, Benchmark and UnitTest for now)

add btAlignedFree to deleteCriticalSection
This commit is contained in:
erwin.coumans
2012-09-10 16:02:30 +00:00
parent 77b662d5fe
commit 9cfcabfc4c
2 changed files with 3 additions and 0 deletions

View File

@@ -166,7 +166,9 @@ end
end
if not _OPTIONS["without-demos"] then
if not _OPTIONS["ios"] then
include "../Demos"
end
include "../Extras"
end

View File

@@ -449,6 +449,7 @@ void Win32ThreadSupport::deleteBarrier(btBarrier* barrier)
void Win32ThreadSupport::deleteCriticalSection(btCriticalSection* criticalSection)
{
criticalSection->~btCriticalSection();
btAlignedFree(criticalSection);
}