Skip to content

Commit 5f96e18

Browse files
committed
CI: Use CMAKE_ADD_CUSTOM_COMMAND_DEPENDS_EXPLICIT_ONLY tweak
1 parent baddabe commit 5f96e18

File tree

5 files changed

+8
-1
lines changed

5 files changed

+8
-1
lines changed

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ commonSteps: &commonSteps
7979
-DCMAKE_BUILD_TYPE=Release \
8080
-DD_COMPILER=$PWD/../host-ldc/bin/ldmd2 \
8181
-DLDC_LINK_MANUALLY=OFF \
82+
-DCMAKE_ADD_CUSTOM_COMMAND_DEPENDS_EXPLICIT_ONLY=ON \
8283
$EXTRA_CMAKE_FLAGS
8384
ninja -j$PARALLELISM obj/ldc2.o all ldc2-unittest all-test-runners
8485
bin/ldc2 -version

.cirrus.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ common_steps_template: &COMMON_STEPS_TEMPLATE
2626
-DCMAKE_INSTALL_PREFIX=$installDir \
2727
-DINCLUDE_INSTALL_DIR=$installDir/import \
2828
-DLDC_LINK_MANUALLY=OFF \
29+
-DCMAKE_ADD_CUSTOM_COMMAND_DEPENDS_EXPLICIT_ONLY=ON \
2930
"${extraFlags[@]}"
3031
ninja -j$PARALLELISM obj/ldc2.o all ldc2-unittest all-test-runners
3132
bin/ldc2 -version
@@ -405,7 +406,8 @@ task:
405406
-DLLVM_ROOT_DIR=$PWD/../llvm \
406407
-DD_COMPILER=$PWD/../host-ldc/bin/ldmd2 \
407408
-DBUILD_SHARED_LIBS=OFF \
408-
-DBUILD_LTO_LIBS=ON
409+
-DBUILD_LTO_LIBS=ON \
410+
-DCMAKE_ADD_CUSTOM_COMMAND_DEPENDS_EXPLICIT_ONLY=ON
409411
ninja -j$PARALLELISM obj/ldc2.o all
410412
bin/ldc2 -version
411413
<< : *COMMON_STEPS_TEMPLATE

.github/actions/helper-build-ldc/action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ runs:
3535
-DLLVM_ROOT_DIR="$PWD/../${{ inputs.llvm_dir }}" \
3636
-DD_COMPILER='${{ inputs.host_dc }}' \
3737
-DLDC_LINK_MANUALLY=OFF \
38+
-DCMAKE_ADD_CUSTOM_COMMAND_DEPENDS_EXPLICIT_ONLY=ON \
3839
${{ inputs.specify_install_dir == 'true' && '-DCMAKE_INSTALL_PREFIX="$installDir"' || '' }} \
3940
${{ inputs.specify_install_dir == 'true' && '-DINCLUDE_INSTALL_DIR="$installDir/import"' || '' }} \
4041
${{ inputs.cmake_flags }}
@@ -57,6 +58,7 @@ runs:
5758
"-DD_COMPILER=${{ inputs.host_dc }}" ^
5859
-DCMAKE_C_COMPILER=clang-cl ^
5960
-DCMAKE_CXX_COMPILER=clang-cl ^
61+
-DCMAKE_ADD_CUSTOM_COMMAND_DEPENDS_EXPLICIT_ONLY=ON ^
6062
${{ inputs.specify_install_dir == 'true' && '"-DCMAKE_INSTALL_PREFIX=%installDir%"' || '' }} ^
6163
${{ inputs.specify_install_dir == 'true' && '"-DINCLUDE_INSTALL_DIR=%installDir%\import"' || '' }} ^
6264
${{ inputs.cmake_flags }}

.github/workflows/supported_llvm_versions.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ jobs:
121121
-DCMAKE_BUILD_TYPE=Release \
122122
-DLLVM_ROOT_DIR="$PWD/llvm" \
123123
-DLDC_LINK_MANUALLY=OFF \
124+
-DCMAKE_ADD_CUSTOM_COMMAND_DEPENDS_EXPLICIT_ONLY=ON \
124125
${{ matrix.cmake_flags }}
125126
ninja obj/ldc2.o all ldc2-unittest all-test-runners
126127
bin/ldc2 --version

runtime/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,7 @@ if(TARGET gen_gccbuiltins)
335335
add_custom_command(
336336
OUTPUT ${module}
337337
COMMAND gen_gccbuiltins ${module} "${name}"
338+
DEPENDS gen_gccbuiltins
338339
)
339340
endfunction()
340341

0 commit comments

Comments
 (0)