File tree 5 files changed +8
-8
lines changed 5 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,6 @@ commonSteps: &commonSteps
79
79
-DCMAKE_BUILD_TYPE=Release \
80
80
-DD_COMPILER=$PWD/../host-ldc/bin/ldmd2 \
81
81
-DLDC_LINK_MANUALLY=OFF \
82
- -DCMAKE_ADD_CUSTOM_COMMAND_DEPENDS_EXPLICIT_ONLY=ON \
83
82
$EXTRA_CMAKE_FLAGS
84
83
ninja -j$PARALLELISM obj/ldc2.o all ldc2-unittest all-test-runners
85
84
bin/ldc2 -version
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ common_steps_template: &COMMON_STEPS_TEMPLATE
26
26
-DCMAKE_INSTALL_PREFIX=$installDir \
27
27
-DINCLUDE_INSTALL_DIR=$installDir/import \
28
28
-DLDC_LINK_MANUALLY=OFF \
29
- -DCMAKE_ADD_CUSTOM_COMMAND_DEPENDS_EXPLICIT_ONLY=ON \
30
29
"${extraFlags[@]}"
31
30
ninja -j$PARALLELISM obj/ldc2.o all ldc2-unittest all-test-runners
32
31
bin/ldc2 -version
@@ -406,8 +405,7 @@ task:
406
405
-DLLVM_ROOT_DIR=$PWD/../llvm \
407
406
-DD_COMPILER=$PWD/../host-ldc/bin/ldmd2 \
408
407
-DBUILD_SHARED_LIBS=OFF \
409
- -DBUILD_LTO_LIBS=ON \
410
- -DCMAKE_ADD_CUSTOM_COMMAND_DEPENDS_EXPLICIT_ONLY=ON
408
+ -DBUILD_LTO_LIBS=ON
411
409
ninja -j$PARALLELISM obj/ldc2.o all
412
410
bin/ldc2 -version
413
411
<< : *COMMON_STEPS_TEMPLATE
Original file line number Diff line number Diff line change 35
35
-DLLVM_ROOT_DIR="$PWD/../${{ inputs.llvm_dir }}" \
36
36
-DD_COMPILER='${{ inputs.host_dc }}' \
37
37
-DLDC_LINK_MANUALLY=OFF \
38
- -DCMAKE_ADD_CUSTOM_COMMAND_DEPENDS_EXPLICIT_ONLY=ON \
39
38
${{ inputs.specify_install_dir == 'true' && '-DCMAKE_INSTALL_PREFIX="$installDir"' || '' }} \
40
39
${{ inputs.specify_install_dir == 'true' && '-DINCLUDE_INSTALL_DIR="$installDir/import"' || '' }} \
41
40
${{ inputs.cmake_flags }}
58
57
"-DD_COMPILER=${{ inputs.host_dc }}" ^
59
58
-DCMAKE_C_COMPILER=clang-cl ^
60
59
-DCMAKE_CXX_COMPILER=clang-cl ^
61
- -DCMAKE_ADD_CUSTOM_COMMAND_DEPENDS_EXPLICIT_ONLY=ON ^
62
60
${{ inputs.specify_install_dir == 'true' && '"-DCMAKE_INSTALL_PREFIX=%installDir%"' || '' }} ^
63
61
${{ inputs.specify_install_dir == 'true' && '"-DINCLUDE_INSTALL_DIR=%installDir%\import"' || '' }} ^
64
62
${{ inputs.cmake_flags }}
Original file line number Diff line number Diff line change @@ -121,7 +121,6 @@ jobs:
121
121
-DCMAKE_BUILD_TYPE=Release \
122
122
-DLLVM_ROOT_DIR="$PWD/llvm" \
123
123
-DLDC_LINK_MANUALLY=OFF \
124
- -DCMAKE_ADD_CUSTOM_COMMAND_DEPENDS_EXPLICIT_ONLY=ON \
125
124
${{ matrix.cmake_flags }}
126
125
ninja obj/ldc2.o all ldc2-unittest all-test-runners
127
126
bin/ldc2 --version
Original file line number Diff line number Diff line change 1
1
cmake_minimum_required (VERSION 3.4.3)
2
2
if (POLICY CMP0025)
3
- cmake_policy (SET CMP0025 NEW)
3
+ cmake_policy (SET CMP0025 NEW)
4
+ endif ()
5
+ if (${CMAKE_VERSION} VERSION_GREATER "3.26.9" )
6
+ # Prevent implicit dependencies for custom commands, e.g.,
7
+ # `obj/ldc2.o` depending on `lib/libldc.a` with LDC_LINK_MANUALLY=ON.
8
+ # Only supported since CMake v3.27 unfortunately.
9
+ set (CMAKE_ADD_CUSTOM_COMMAND_DEPENDS_EXPLICIT_ONLY ON )
4
10
endif ()
5
11
6
12
project (ldc)
You can’t perform that action at this time.
0 commit comments