From 232ea07e895f24f0fc6b6f521fb134164d7c5133 Mon Sep 17 00:00:00 2001 From: ekibun Date: Wed, 18 May 2022 00:30:52 +0800 Subject: [PATCH] disable Intrinsic functions in msvc build --- CHANGELOG.md | 1 + cxx/quickjs | 2 +- cxx/quickjs.cmake | 4 ++++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 824d2ad..25384c9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ ## 0.3.7 +* fixed compiler error in windows release * fixed crash when encoding Error object * updated to latest quickjs diff --git a/cxx/quickjs b/cxx/quickjs index 21a2b25..1f6ce20 160000 --- a/cxx/quickjs +++ b/cxx/quickjs @@ -1 +1 @@ -Subproject commit 21a2b256cc3ec140a59cb7de51821b2b2abbef9b +Subproject commit 1f6ce203c6f8cdea33386ac464d5ed19a17aaf9f diff --git a/cxx/quickjs.cmake b/cxx/quickjs.cmake index 955cbfa..b368134 100644 --- a/cxx/quickjs.cmake +++ b/cxx/quickjs.cmake @@ -15,3 +15,7 @@ project(quickjs LANGUAGES C) target_compile_options(quickjs PRIVATE "-DCONFIG_VERSION=\"${QUICKJS_VERSION}\"") target_compile_options(quickjs PRIVATE "-DDUMP_LEAKS") +if(MSVC) + # https://github.com/ekibun/flutter_qjs/issues/7 + target_compile_options(quickjs PRIVATE "/Oi-") +endif() \ No newline at end of file