Update jsc build condition

This commit is contained in:
Ariel Abreu 2023-04-29 10:15:16 -04:00
parent a189bb5f80
commit 1083e4e3cf
No known key found for this signature in database
GPG Key ID: C06B805216EDEEED

View File

@ -2260,8 +2260,8 @@ target_link_options(JavaScriptCore PRIVATE
-Wl,-all_load
)
if(ADDITIONAL_PACKAGES)
# this isn't included on a default macOS install (which is why it's only built with `ADDITIONAL_PACKAGES`),
if (COMPONENT_cli_extra)
# this isn't included on a default macOS install (which is why it's only built with `COMPONENT_cli_extra`),
# but i think it's a pretty neat party trick; great for showing off JavaScriptCore in action on the command line
add_darling_executable(jsc
jsc.cpp