Fix product and Mac build.

BUG=

Review URL: https://codereview.chromium.org/2518063008 .
This commit is contained in:
Florian Schneider
2016-11-23 10:47:44 -08:00
parent 6cd141def5
commit 6cfce40fab
3 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -22,12 +22,12 @@ char* Platform::resolved_executable_name_ = NULL;
int Platform::script_index_ = 1;
char** Platform::argv_ = NULL;
static void segv_handler(int signal, siginfo_t* siginfo, void* context) {
Dart_DumpNativeStackTrace(context);
abort();
}
bool Platform::Initialize() {
// Turn off the signal handler for SIGPIPE as it causes the process
// to terminate on writing to a closed pipe. Without the signal
+6
View File
@@ -28,6 +28,12 @@ char* Platform::resolved_executable_name_ = NULL;
int Platform::script_index_ = 1;
char** Platform::argv_ = NULL;
static void segv_handler(int signal, siginfo_t* siginfo, void* context) {
Dart_DumpNativeStackTrace(context);
abort();
}
bool Platform::Initialize() {
// Turn off the signal handler for SIGPIPE as it causes the process
// to terminate on writing to a closed pipe. Without the signal
+2
View File
@@ -6673,7 +6673,9 @@ DART_EXPORT bool Dart_IsPrecompiledRuntime() {
DART_EXPORT void Dart_DumpNativeStackTrace(void* context) {
#ifndef PRODUCT
Profiler::DumpStackTrace(context);
#endif
}
} // namespace dart