Skip to content

Commit

Permalink
Review improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
piaskowyk committed Dec 11, 2024
1 parent c78dddb commit 2011a91
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,12 @@ elseif ("${CMAKE_CXX_COMPILER_ID}" MATCHES "MSVC")
if (HERMES_MSVC_MP)
add_definitions( /MP )
endif()

# TODO: Investigate disabling strict signed integer overflow for MSVC

# MSVC does not have strict aliasing so there is no need to support it.
# Similar to GCC/Clang above, disable strict signed integer overflow.
# append("/d2UndefIntOverflow-" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
endif()

# Export a JSON file with the compilation commands that external tools can use
Expand Down
11 changes: 0 additions & 11 deletions lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -177,17 +177,6 @@ if(APPLE AND HERMES_BUILD_APPLE_FRAMEWORK)
MACOSX_FRAMEWORK_BUNDLE_VERSION ${PROJECT_VERSION}
MACOSX_FRAMEWORK_IDENTIFIER dev.hermesengine.${HERMES_APPLE_TARGET_PLATFORM}
)
# Install headers into `Headers` while keeping required directory structure
set_source_files_properties(${api_headers} PROPERTIES
MACOSX_PACKAGE_LOCATION Headers
)
set_source_files_properties(${api_public_headers} PROPERTIES
MACOSX_PACKAGE_LOCATION Headers/Public
)
if(HERMES_ENABLE_BITCODE)
target_compile_options(hermesvm PUBLIC "-fembed-bitcode")
target_link_options(hermesvm PUBLIC "-fembed-bitcode")
endif()
# Define the deployment target in the frameworks metadata
if(HERMES_APPLE_TARGET_PLATFORM MATCHES "iphone")
add_custom_command(TARGET hermesvm POST_BUILD
Expand Down

0 comments on commit 2011a91

Please sign in to comment.