Commit ec39ef3a authored by paroga@webkit.org's avatar paroga@webkit.org

Do not call getenv() on Windows CE where it does not exist.

* runtime/JSGlobalData.cpp:
(JSC::JSGlobalData::JSGlobalData):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147836 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent d08db733
2013-04-06 Patrick Gansterer <paroga@webkit.org>
Do not call getenv() on Windows CE where it does not exist.
* runtime/JSGlobalData.cpp:
(JSC::JSGlobalData::JSGlobalData):
2013-04-05 Benjamin Poulain <benjamin@webkit.org>
Second attempt to fix the Windows bot
......@@ -253,9 +253,11 @@ JSGlobalData::JSGlobalData(GlobalDataType globalDataType, HeapType heapType)
m_perBytecodeProfiler = adoptPtr(new Profiler::Database(*this));
StringPrintStream pathOut;
#if !OS(WINCE)
const char* profilerPath = getenv("JSC_PROFILER_PATH");
if (profilerPath)
pathOut.print(profilerPath, "/");
#endif
pathOut.print("JSCProfile-", getCurrentProcessID(), "-", m_perBytecodeProfiler->databaseID(), ".json");
m_perBytecodeProfiler->registerToSaveAtExit(pathOut.toCString().data());
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment