Skip to content

Commit e058f58

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 22e8eb8 + 1628298 commit e058f58

File tree

6 files changed

+183
-557
lines changed

6 files changed

+183
-557
lines changed

CMakeLists.txt

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,14 @@ macro(add_qjs_libc_if_needed target)
187187
target_sources(${target} PRIVATE quickjs-libc.c)
188188
endif()
189189
endmacro()
190+
macro(add_static_if_needed target)
191+
if(BUILD_STATIC_QJS_EXE OR MINGW)
192+
target_link_options(${target} PRIVATE -static)
193+
if(MINGW)
194+
target_link_options(${target} PRIVATE -static-libgcc)
195+
endif()
196+
endif()
197+
endmacro()
190198

191199
set(qjs_sources
192200
cutils.c
@@ -249,6 +257,7 @@ add_executable(qjsc
249257
qjsc.c
250258
)
251259
add_qjs_libc_if_needed(qjsc)
260+
add_static_if_needed(qjsc)
252261
target_compile_definitions(qjsc PRIVATE ${qjs_defines})
253262
target_link_libraries(qjsc qjs)
254263

@@ -262,17 +271,12 @@ add_executable(qjs_exe
262271
qjs.c
263272
)
264273
add_qjs_libc_if_needed(qjs_exe)
274+
add_static_if_needed(qjs_exe)
265275
set_target_properties(qjs_exe PROPERTIES
266276
OUTPUT_NAME "qjs"
267277
)
268278
target_compile_definitions(qjs_exe PRIVATE ${qjs_defines})
269279
target_link_libraries(qjs_exe qjs)
270-
if(BUILD_STATIC_QJS_EXE OR MINGW)
271-
target_link_options(qjs_exe PRIVATE -static)
272-
if(MINGW)
273-
target_link_options(qjs_exe PRIVATE -static-libgcc)
274-
endif()
275-
endif()
276280
if(NOT WIN32)
277281
set_target_properties(qjs_exe PROPERTIES ENABLE_EXPORTS TRUE)
278282
endif()

quickjs-opcode.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -365,11 +365,6 @@ DEF( is_null, 1, 1, 1, none)
365365
DEF(typeof_is_undefined, 1, 1, 1, none)
366366
DEF( typeof_is_function, 1, 1, 1, none)
367367

368-
// order matters, see non-IC counterparts
369-
DEF( get_field_ic, 5, 1, 1, none)
370-
DEF( get_field2_ic, 5, 1, 2, none)
371-
DEF( put_field_ic, 5, 2, 0, none)
372-
373368
#undef DEF
374369
#undef def
375370
#endif /* DEF */

0 commit comments

Comments
 (0)