Skip to content

Commit

Permalink
try ugly hack
Browse files Browse the repository at this point in the history
  • Loading branch information
gengjiawen committed Jan 4, 2024
1 parent 36bfb6c commit 3781376
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-20.04, ubuntu-22.04, windows-2019]
os: [macos-latest, ubuntu-20.04, ubuntu-22.04, windows-latest]
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v2
Expand Down
33 changes: 17 additions & 16 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -999,22 +999,23 @@ target_include_directories(v8_torque_generated
${PROJECT_SOURCE_DIR}/v8
)

add_custom_command(
COMMAND
torque
-o ${PROJECT_BINARY_DIR}/torque-generated
-v8-root ${PROJECT_SOURCE_DIR}/v8
${torque_files}
COMMAND
${CMAKE_COMMAND} -E touch ${torque-outputs} ${torque_outputs}
DEPENDS
torque
${torque_dirs}
${torque_files_abs}
OUTPUT
${torque-outputs}
${torque_outputs}
)
# for stupid windows
foreach(file IN LISTS torque_files)
add_custom_command(
COMMAND
torque
-o ${PROJECT_BINARY_DIR}/torque-generated
-v8-root ${PROJECT_SOURCE_DIR}/v8
${file}
COMMAND
${CMAKE_COMMAND} -E touch ${PROJECT_BINARY_DIR}/torque-generated/${file}
DEPENDS
torque
${PROJECT_BINARY_DIR}/torque-generated/${file}
OUTPUT
${PROJECT_BINARY_DIR}/torque-generated/${file}
)
endforeach()

add_custom_command(
COMMAND
Expand Down

0 comments on commit 3781376

Please sign in to comment.