File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 22
22
build_dir : build
23
23
host_dc : ../bootstrap-ldc/bin/ldmd2
24
24
specify_install_dir : true
25
- # FIXME: sporadic compiler crashes on macOS arm64 when using mimalloc *and* mixing LLVM versions for Xcode clang/host LDC:
26
- # libc++abi: Pure virtual function called!
25
+ # FIXME: mimalloc on macOS is tricky - when mixing newer LLVM from bootstrap LDC with older LLVM from Xcode clang,
26
+ # causing *sporadic* compiler crashes: `libc++abi: Pure virtual function called!`
27
+ # on x86_64, this is 'fixed' by using LTO - on arm64, this doesn't suffice
27
28
cmake_flags : >-
28
29
${{ (runner.os != 'Windows' && !(runner.os == 'macOS' && inputs.arch == 'arm64')) && '-DALTERNATIVE_MALLOC_O="$PWD/../build-mimalloc/CMakeFiles/mimalloc-obj.dir/src/static.c.o"' || '' }}
29
30
${{ inputs.cmake_flags }}
Original file line number Diff line number Diff line change 86
86
arch : arm64
87
87
extra_cmake_flags : >-
88
88
-DD_COMPILER_FLAGS="-O -flto=full -defaultlib=phobos2-ldc-lto,druntime-ldc-lto -L-exported_symbol '-L__*' -L-w"
89
+ # FIXME: cannot enable LTO for C++ parts too, due to: `LLVM ERROR: Unsupported stack probing method` when linking ldc2
90
+ # (apparently from bitcode files compiled with older Xcode clang)
89
91
# -DEXTRA_CXXFLAGS=-flto=full
90
92
with_pgo : true
91
93
You can’t perform that action at this time.
0 commit comments