|
Lines 463-469
if (MSVC AND NOT ENABLE_C_LOOP)
a/Source/JavaScriptCore/CMakeLists.txt_sec1
|
| 463 |
COMMAND ${MASM_EXECUTABLE} ${LLINT_MASM_FLAGS} ${JavaScriptCore_DERIVED_SOURCES_DIR}/LowLevelInterpreterWin.obj ${JavaScriptCore_DERIVED_SOURCES_DIR}/LowLevelInterpreterWin.asm |
463 |
COMMAND ${MASM_EXECUTABLE} ${LLINT_MASM_FLAGS} ${JavaScriptCore_DERIVED_SOURCES_DIR}/LowLevelInterpreterWin.obj ${JavaScriptCore_DERIVED_SOURCES_DIR}/LowLevelInterpreterWin.asm |
| 464 |
VERBATIM) |
464 |
VERBATIM) |
| 465 |
list(APPEND JavaScriptCore_SOURCES ${JavaScriptCore_DERIVED_SOURCES_DIR}/LowLevelInterpreterWin.obj) |
465 |
list(APPEND JavaScriptCore_SOURCES ${JavaScriptCore_DERIVED_SOURCES_DIR}/LowLevelInterpreterWin.obj) |
| 466 |
add_library(LowLevelInterpreterLib OBJECT llint/LowLevelInterpreter.cpp) |
466 |
add_library(LowLevelInterpreterLib STATIC llint/LowLevelInterpreter.cpp) |
| 467 |
else () |
467 |
else () |
| 468 |
# As there's poor toolchain support for using `.file` directives in |
468 |
# As there's poor toolchain support for using `.file` directives in |
| 469 |
# inline asm (i.e. there's no way to avoid clashes with the `.file` |
469 |
# inline asm (i.e. there's no way to avoid clashes with the `.file` |
|
Lines 472-478
else ()
a/Source/JavaScriptCore/CMakeLists.txt_sec2
|
| 472 |
# an object file. We only need to do this for LowLevelInterpreter.cpp |
472 |
# an object file. We only need to do this for LowLevelInterpreter.cpp |
| 473 |
# and cmake doesn't allow us to introduce a compiler wrapper for a |
473 |
# and cmake doesn't allow us to introduce a compiler wrapper for a |
| 474 |
# single source file, so we need to create a separate target for it. |
474 |
# single source file, so we need to create a separate target for it. |
| 475 |
add_library(LowLevelInterpreterLib OBJECT llint/LowLevelInterpreter.cpp |
475 |
add_library(LowLevelInterpreterLib STATIC llint/LowLevelInterpreter.cpp |
| 476 |
${JavaScriptCore_DERIVED_SOURCES_DIR}/${LLIntOutput}) |
476 |
${JavaScriptCore_DERIVED_SOURCES_DIR}/${LLIntOutput}) |
| 477 |
endif () |
477 |
endif () |
| 478 |
|
478 |
|
|
Lines 1489-1501
if (CMAKE_COMPILER_IS_GNUCXX AND GCC_OFFLINEASM_SOURCE_MAP)
a/Source/JavaScriptCore/CMakeLists.txt_sec3
|
| 1489 |
COMPILE_OPTIONS "-fno-lto") |
1489 |
COMPILE_OPTIONS "-fno-lto") |
| 1490 |
endif () |
1490 |
endif () |
| 1491 |
|
1491 |
|
| 1492 |
# When building JavaScriptCore as an object library, we need to make sure the |
1492 |
list(APPEND JavaScriptCore_PRIVATE_LIBRARIES LowLevelInterpreterLib) |
| 1493 |
# lowlevelinterpreter lib objects get propogated. |
|
|
| 1494 |
if (${JavaScriptCore_LIBRARY_TYPE} STREQUAL "OBJECT") |
| 1495 |
list(APPEND JavaScriptCore_PRIVATE_LIBRARIES $<TARGET_OBJECTS:LowLevelInterpreterLib>) |
| 1496 |
else () |
| 1497 |
list(APPEND JavaScriptCore_SOURCES $<TARGET_OBJECTS:LowLevelInterpreterLib>) |
| 1498 |
endif () |
| 1499 |
|
1493 |
|
| 1500 |
WEBKIT_COMPUTE_SOURCES(JavaScriptCore) |
1494 |
WEBKIT_COMPUTE_SOURCES(JavaScriptCore) |
| 1501 |
WEBKIT_FRAMEWORK(JavaScriptCore) |
1495 |
WEBKIT_FRAMEWORK(JavaScriptCore) |