Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions cmake/HermesExternal.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ else()
LOG_BUILD ON
LOG_OUTPUT_ON_FAILURE ON
UPDATE_DISCONNECTED ON
ENV CC ${CMAKE_C_COMPILER}
ENV CXX ${CMAKE_CXX_COMPILER}
Comment on lines +110 to +111
Copy link

Copilot AI Nov 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ENV directive syntax is incorrect. Each ENV entry should be a single key=value pair on one line. The correct syntax should be ENV \"CC=${CMAKE_C_COMPILER}\" \"CXX=${CMAKE_CXX_COMPILER}\" or split into separate ENV directives like ENV CC=${CMAKE_C_COMPILER} and ENV CXX=${CMAKE_CXX_COMPILER}.

Suggested change
ENV CC ${CMAKE_C_COMPILER}
ENV CXX ${CMAKE_CXX_COMPILER}
ENV "CC=${CMAKE_C_COMPILER}" "CXX=${CMAKE_CXX_COMPILER}"

Copilot uses AI. Check for mistakes.
Comment on lines +110 to +111
Copy link

Copilot AI Nov 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These environment variables appear redundant since CMAKE_C_COMPILER and CMAKE_CXX_COMPILER are already being passed via CMAKE_ARGS at lines 90-91. While setting both CMAKE_ARGS and ENV variables can help with multi-stage builds (configure vs build/link), consider documenting why both are necessary if this duplication is intentional.

Suggested change
ENV CC ${CMAKE_C_COMPILER}
ENV CXX ${CMAKE_CXX_COMPILER}

Copilot uses AI. Check for mistakes.
)

# Set tool paths (these will be valid after Hermes is built)
Expand Down