Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ install_ubuntu_prerequisites_template: &INSTALL_UBUNTU_PREREQUISITES_TEMPLATE
environment:
CIRRUS_CLONE_DEPTH: 50
HOST_LDC_VERSION: 1.31.0
LLVM_VERSION: 18.1.6
LLVM_VERSION: 18.1.8
GITHUB_TOKEN: ENCRYPTED[0955bd48c8d4e5391446fc0149d0719ad0b63df27ec9e6c180a5730a5b10dc7f28f09d1383423db158d21380ee2b022a]

task:
Expand Down
3 changes: 2 additions & 1 deletion .github/actions/1-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ runs:
- name: Install D host compiler
uses: dlang-community/setup-dlang@v1
with:
compiler: ldc-latest
# macOS arm64: use LDC v1.39.0 using LLVM v17, as Xcode v16
compiler: ${{ inputs.arch == 'arm64' && 'ldc-1.39.0' || 'ldc-latest' }}
- name: 'Posix: Clear LD_LIBRARY_PATH env variable' # don't use host druntime/Phobos .so/.dylib etc.
if: runner.os != 'Windows'
shell: bash
Expand Down
15 changes: 10 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ concurrency:

env:
CLANG_VERSION: 15.0.6
LLVM_VERSION: 18.1.6
LLVM_VERSION: 18.1.8

jobs:
build-native:
Expand Down Expand Up @@ -62,7 +62,6 @@ jobs:
-DD_COMPILER_FLAGS="-gcc=/usr/bin/c++ -O -flto=full -defaultlib=phobos2-ldc-lto,druntime-ldc-lto -L-exported_symbol '-L__*' -L-w"
-DEXTRA_CXXFLAGS=-flto=full
with_pgo: true
llvm_version: 17.0.6 # FIXME: sporadic 'libc++abi: Pure virtual function called!' compiler crashes with LLVM 18 (see https://github.com/ldc-developers/ldc/pull/4604, https://github.com/ldc-developers/ldc/pull/4541)

- job_name: Windows x64
os: windows-2022
Expand Down Expand Up @@ -95,20 +94,26 @@ jobs:
with:
submodules: true
fetch-depth: 50
- name: 'macOS 14: Switch to Xcode v14.3.1'
- name: 'macOS 14: Switch to Xcode 16 Beta 4'
if: matrix.os == 'macos-14'
run: sudo xcode-select -switch /Applications/Xcode_14.3.1.app
run: sudo xcode-select -switch /Applications/Xcode_16_beta_4.app
- name: Install prerequisites
uses: ./.github/actions/1-setup
with:
clang_version: ${{ runner.os == 'Windows' && '18.1.6' || env.CLANG_VERSION }}
clang_version: ${{ runner.os == 'Windows' && '18.1.8' || env.CLANG_VERSION }}
llvm_version: ${{ matrix.llvm_version || env.LLVM_VERSION }}
arch: ${{ matrix.arch }}
- name: Build bootstrap LDC
if: matrix.os != 'macos-14'
uses: ./.github/actions/2-build-bootstrap
with:
cmake_flags: ${{ matrix.bootstrap_cmake_flags }}
arch: ${{ matrix.arch }}
# FIXME: on macOS arm64, LLVM 18 (from LDC) and LLVM 17 (from Xcode 16) seem incompatible,
# leading to sporadic 'libc++abi: Pure virtual function called!' compiler crashes
- name: 'macOS 14: Use host LDC (with Xcode-compatible LLVM version) as bootstrap LDC'
if: matrix.os == 'macos-14'
run: ln -s $(dirname $(dirname $(which ldmd2))) ../bootstrap-ldc
- name: Build LDC with PGO instrumentation & gather profile from compiling default libs
if: matrix.with_pgo
uses: ./.github/actions/2a-build-pgo
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/supported_llvm_versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
os: ubuntu-20.04
host_dc: ldc-1.19.0
# FIXME: no usable official package available yet
llvm_version: https://github.com/ldc-developers/llvm-project/releases/download/ldc-v18.1.6/llvm-18.1.6-linux-x86_64.tar.xz
llvm_version: https://github.com/ldc-developers/llvm-project/releases/download/ldc-v18.1.8/llvm-18.1.8-linux-x86_64.tar.xz
cmake_flags: -DRT_SUPPORT_SANITIZERS=ON
- job_name: macOS 14, LLVM 17, latest LDC beta
os: macos-14
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# LDC master

#### Big news
- LLVM for prebuilt packages bumped to v18.1.8 (incl. macOS arm64). (#4712)
- Android: NDK for prebuilt package bumped from r26d to r27. (#4711)

#### Platform support
Expand Down
2 changes: 1 addition & 1 deletion tests/dmd/runnable/ldc_extern_weak.d
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// REQUIRED_ARGS(osx): -L-undefined -Ldynamic_lookup

// the linker on macOS-arm64 emits a warning
// TRANSFORM_OUTPUT(osx): remove_lines("warning: -undefined dynamic_lookup may not work with chained fixups")
// TRANSFORM_OUTPUT(osx): remove_lines("warning:.* -undefined dynamic_lookup")

extern __gshared pragma(LDC_extern_weak) int nonExistent;

Expand Down