Skip to content

Commit 59d63a5

Browse files
committed
Allow to disable JSC shell build
https://bugs.webkit.org/show_bug.cgi?id=276945 Reviewed by Michael Catanzaro. For those of us not working on JSC almost ever, it could be a nice way of saving CPU cycles if we just have a way of disabling building the JSC shell. * Source/JavaScriptCore/CMakeLists.txt: * Source/cmake/WebKitFeatures.cmake: Canonical link: https://commits.webkit.org/281276@main
1 parent 4c6f6d1 commit 59d63a5

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

Source/JavaScriptCore/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1530,4 +1530,6 @@ if (USE_VERSION_STAMPER)
15301530
VERBATIM)
15311531
endif ()
15321532

1533-
add_subdirectory(shell)
1533+
if (ENABLE_JAVASCRIPT_SHELL)
1534+
add_subdirectory(shell)
1535+
endif ()

Source/cmake/WebKitFeatures.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ macro(WEBKIT_OPTION_BEGIN)
183183
WEBKIT_OPTION_DEFINE(ENABLE_INTELLIGENT_TRACKING_PREVENTION "Toggle resource load statistics support" PRIVATE OFF)
184184
WEBKIT_OPTION_DEFINE(ENABLE_IOS_GESTURE_EVENTS "Toggle iOS gesture events support" PRIVATE OFF)
185185
WEBKIT_OPTION_DEFINE(ENABLE_IOS_TOUCH_EVENTS "Toggle iOS touch events support" PRIVATE OFF)
186+
WEBKIT_OPTION_DEFINE(ENABLE_JAVASCRIPT_SHELL "Toggle JavaScript shell and testing support" PRIVATE ON)
186187
WEBKIT_OPTION_DEFINE(ENABLE_JIT "Toggle JustInTime JavaScript support" PRIVATE ${ENABLE_JIT_DEFAULT})
187188
WEBKIT_OPTION_DEFINE(ENABLE_LAYER_BASED_SVG_ENGINE "Toggle Layer Based SVG Engine support" PRIVATE OFF)
188189
WEBKIT_OPTION_DEFINE(ENABLE_LAYOUT_FORMATTING_CONTEXT "Toggle Layout Formatting Context support" PRIVATE OFF)

0 commit comments

Comments
 (0)