Skip to content

Commit

Permalink
Always enable debugger by default
Browse files Browse the repository at this point in the history
Summary:
We currently enable the debugger by default on all platforms except
Android. On Android, we then manually enable the debugger in debug
builds. Instead, change it so the debugger is manually disabled in
release builds, to simplify the setup.

Changelog: [Internal]

Reviewed By: jpporto

Differential Revision: D35347444

fbshipit-source-id: a97bba0c65c61c211cf9e361e7091343a2c6416f
  • Loading branch information
neildhar authored and facebook-github-bot committed Apr 4, 2022
1 parent 26468cc commit eabf5fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -211,11 +211,7 @@ set(HERMES_USE_STATIC_ICU OFF CACHE BOOL
set(HERMES_UNICODE_LITE OFF CACHE BOOL
"Enable to use internal no-op unicode functionality instead of relying on underlying system libraries")

set(HERMES_ENABLE_DEBUGGER_DEFAULT OFF)
if (NOT HERMES_IS_MOBILE_BUILD)
set(HERMES_ENABLE_DEBUGGER_DEFAULT ON)
endif()
set(HERMES_ENABLE_DEBUGGER ${HERMES_ENABLE_DEBUGGER_DEFAULT} CACHE BOOL
set(HERMES_ENABLE_DEBUGGER ON CACHE BOOL
"Build with debugger support")

set(HERMES_ENABLE_IR_INSTRUMENTATION OFF CACHE BOOL
Expand Down
2 changes: 1 addition & 1 deletion android/hermes/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ android {
debug {
externalNativeBuild {
cmake {
arguments "-DHERMES_ENABLE_DEBUGGER=True"
// JS developers aren't VM developers. Give them a faster build.
arguments "-DCMAKE_BUILD_TYPE=Release"
}
Expand All @@ -56,6 +55,7 @@ android {
release {
externalNativeBuild {
cmake {
arguments "-DHERMES_ENABLE_DEBUGGER=False"
arguments "-DCMAKE_BUILD_TYPE=MinSizeRel"
}
}
Expand Down

0 comments on commit eabf5fc

Please sign in to comment.