diff --git a/BUILD.gn b/BUILD.gn index 494d33fc04..249f3700f3 100755 --- a/BUILD.gn +++ b/BUILD.gn @@ -239,7 +239,7 @@ target(link_target_type, "ffmpeg_internal") { # Windows builds can't compile without EBP because we can't omit frame # pointers like we do on posix. if (target_cpu == "x86") { - if (using_sanitizer || is_win) { + if (using_sanitizer || is_win || is_electron_build) { defines += [ "HAVE_EBP_AVAILABLE=0" ] } else { defines += [ "HAVE_EBP_AVAILABLE=1" ]