FreeBSD QuickJS Patch (#203)

This commit is contained in:
Nick Vatamaniuc
2024-02-12 05:28:00 -05:00
committed by GitHub
parent ae6fa8d3d2
commit 636c946531
3 changed files with 19 additions and 1 deletions

View File

@@ -25,6 +25,9 @@
ifeq ($(shell uname -s),Darwin)
CONFIG_DARWIN=y
endif
ifeq ($(shell uname -s),FreeBSD)
CONFIG_FREEBSD=y
endif
# Windows cross compilation from Linux
#CONFIG_WIN32=y
# use link time optimization (smaller and faster executables but slower build)
@@ -57,6 +60,12 @@ ifdef CONFIG_DARWIN
CONFIG_CLANG=y
CONFIG_DEFAULT_AR=y
endif
ifdef CONFIG_FREEBSD
# use clang instead of gcc
CONFIG_CLANG=y
CONFIG_DEFAULT_AR=y
CONFIG_LTO=
endif
ifdef CONFIG_WIN32
ifdef CONFIG_M32