Skip to content

Commit

Permalink
Allow to disable JSC shell build
Browse files Browse the repository at this point in the history
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
  • Loading branch information
calvaris committed Jul 24, 2024
1 parent 4c6f6d1 commit 59d63a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/JavaScriptCore/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1530,4 +1530,6 @@ if (USE_VERSION_STAMPER)
VERBATIM)
endif ()

add_subdirectory(shell)
if (ENABLE_JAVASCRIPT_SHELL)
add_subdirectory(shell)
endif ()
1 change: 1 addition & 0 deletions Source/cmake/WebKitFeatures.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ macro(WEBKIT_OPTION_BEGIN)
WEBKIT_OPTION_DEFINE(ENABLE_INTELLIGENT_TRACKING_PREVENTION "Toggle resource load statistics support" PRIVATE OFF)
WEBKIT_OPTION_DEFINE(ENABLE_IOS_GESTURE_EVENTS "Toggle iOS gesture events support" PRIVATE OFF)
WEBKIT_OPTION_DEFINE(ENABLE_IOS_TOUCH_EVENTS "Toggle iOS touch events support" PRIVATE OFF)
WEBKIT_OPTION_DEFINE(ENABLE_JAVASCRIPT_SHELL "Toggle JavaScript shell and testing support" PRIVATE ON)
WEBKIT_OPTION_DEFINE(ENABLE_JIT "Toggle JustInTime JavaScript support" PRIVATE ${ENABLE_JIT_DEFAULT})
WEBKIT_OPTION_DEFINE(ENABLE_LAYER_BASED_SVG_ENGINE "Toggle Layer Based SVG Engine support" PRIVATE OFF)
WEBKIT_OPTION_DEFINE(ENABLE_LAYOUT_FORMATTING_CONTEXT "Toggle Layout Formatting Context support" PRIVATE OFF)
Expand Down

0 comments on commit 59d63a5

Please sign in to comment.