File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -30,11 +30,14 @@ runs:
30
30
installDir="$PWD/install"
31
31
mkdir '${{ inputs.build_dir }}'
32
32
cd '${{ inputs.build_dir }}'
33
+ # wrt. CMAKE_C[XX]_COMPILER for Apple: https://github.com/ldc-developers/ldc/issues/3901
33
34
cmake -G Ninja ../ldc \
34
35
-DCMAKE_BUILD_TYPE=Release \
35
36
-DLLVM_ROOT_DIR="$PWD/../${{ inputs.llvm_dir }}" \
36
37
-DD_COMPILER='${{ inputs.host_dc }}' \
37
38
-DLDC_LINK_MANUALLY=OFF \
39
+ ${{ runner.os == 'macOS' && '-DCMAKE_C_COMPILER=/usr/bin/cc' || '' }} \
40
+ ${{ runner.os == 'macOS' && '-DCMAKE_CXX_COMPILER=/usr/bin/c++' || '' }} \
38
41
${{ inputs.specify_install_dir == 'true' && '-DCMAKE_INSTALL_PREFIX="$installDir"' || '' }} \
39
42
${{ inputs.specify_install_dir == 'true' && '-DINCLUDE_INSTALL_DIR="$installDir/import"' || '' }} \
40
43
${{ inputs.cmake_flags }}
Original file line number Diff line number Diff line change @@ -39,18 +39,13 @@ jobs:
39
39
- job_name : macOS x86_64
40
40
os : macos-12
41
41
arch : x86_64
42
- # wrt. CMAKE_C[XX]_COMPILER: https://github.com/ldc-developers/ldc/issues/3901
43
42
bootstrap_cmake_flags : >-
44
43
-DBUILD_LTO_LIBS=ON
45
- -DCMAKE_C_COMPILER=/usr/bin/cc
46
- -DCMAKE_CXX_COMPILER=/usr/bin/c++
47
44
# https://github.com/ldc-developers/ldc/issues/4462:
48
45
# When using LTO, we need to explicitly export ~all symbols for plugin support via `ld64 -exported_symbol '__*'`.
49
46
# Additionally `-w` to suppress resulting linker warnings.
50
47
extra_cmake_flags : >-
51
48
-DBUILD_LTO_LIBS=ON
52
- -DCMAKE_C_COMPILER=/usr/bin/cc
53
- -DCMAKE_CXX_COMPILER=/usr/bin/c++
54
49
-DD_COMPILER_FLAGS="-O -flto=full -defaultlib=phobos2-ldc-lto,druntime-ldc-lto -L-exported_symbol '-L__*' -L-w"
55
50
-DEXTRA_CXXFLAGS=-flto=full
56
51
with_pgo : true
60
55
arch : arm64
61
56
bootstrap_cmake_flags : >-
62
57
-DBUILD_LTO_LIBS=ON
63
- -DCMAKE_C_COMPILER=/usr/bin/cc
64
- -DCMAKE_CXX_COMPILER=/usr/bin/c++
65
58
extra_cmake_flags : >-
66
59
-DBUILD_LTO_LIBS=ON
67
- -DCMAKE_C_COMPILER=/usr/bin/cc
68
- -DCMAKE_CXX_COMPILER=/usr/bin/c++
69
60
-DD_COMPILER_FLAGS="-O -flto=full -defaultlib=phobos2-ldc-lto,druntime-ldc-lto -L-exported_symbol '-L__*' -L-w"
70
61
-DEXTRA_CXXFLAGS=-flto=full
71
62
with_pgo : true
You can’t perform that action at this time.
0 commit comments