disable Intrinsic functions in msvc build

This commit is contained in:
ekibun
2022-05-18 00:30:52 +08:00
parent 819186399e
commit 232ea07e89
3 changed files with 6 additions and 1 deletions

View File

@@ -8,6 +8,7 @@
## 0.3.7 ## 0.3.7
* fixed compiler error in windows release
* fixed crash when encoding Error object * fixed crash when encoding Error object
* updated to latest quickjs * updated to latest quickjs

View File

@@ -15,3 +15,7 @@ project(quickjs LANGUAGES C)
target_compile_options(quickjs PRIVATE "-DCONFIG_VERSION=\"${QUICKJS_VERSION}\"") target_compile_options(quickjs PRIVATE "-DCONFIG_VERSION=\"${QUICKJS_VERSION}\"")
target_compile_options(quickjs PRIVATE "-DDUMP_LEAKS") target_compile_options(quickjs PRIVATE "-DDUMP_LEAKS")
if(MSVC)
# https://github.com/ekibun/flutter_qjs/issues/7
target_compile_options(quickjs PRIVATE "/Oi-")
endif()