Skip to content

Commit 198a209

Browse files
authored
Merge pull request #60 from swiftlang/automerge/merge-main-2025-05-27_16-54
Merge `main` into `release/6.2`
2 parents 5b6bcf1 + 11952eb commit 198a209

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

.github/workflows/automerge.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Create PR to merge main into release branch
2+
# In the first period after branching the release branch, we typically want to include many changes from `main` in the release branch. This workflow automatically creates a PR every Monday to merge main into the release branch.
3+
# Later in the release cycle we should stop this practice to avoid landing risky changes by disabling this workflow. To do so, disable the workflow as described in https://docs.github.com/en/actions/managing-workflow-runs-and-deployments/managing-workflow-runs/disabling-and-enabling-a-workflow
4+
on:
5+
schedule:
6+
- cron: '0 9 * * MON'
7+
workflow_dispatch:
8+
jobs:
9+
create_merge_pr:
10+
name: Create PR to merge main into release branch
11+
uses: swiftlang/github-workflows/.github/workflows/create_automerge_pr.yml@main
12+
with:
13+
base_branch: release/6.2
14+
permissions:
15+
contents: write
16+
pull-requests: write
17+
if: (github.event_name == 'schedule' && github.repository == 'swiftlang/swift-foundation-icu') || (github.event_name != 'schedule') # Ensure that we don't run this on a schedule in a fork

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ option(BUILD_SHARED_LIBS "build shared libraries" ON)
2222
set(CMAKE_CXX_STANDARD 14)
2323
set(CMAKE_CXX_STANDARD_REQUIRED ON)
2424

25+
include(CheckLinkerFlag)
26+
check_linker_flag(CXX "LINKER:--build-id=sha1" LINKER_SUPPORTS_BUILD_ID)
27+
2528
include(GNUInstallDirs)
2629

2730
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/modules)
@@ -78,6 +81,8 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "WASI")
7881
$<$<COMPILE_LANGUAGE:C,CXX>:_WASI_EMULATED_MMAN>)
7982
add_link_options("-Lwasi-emulated-signal")
8083
add_link_options("-Lwasi-emulated-mman")
84+
elseif(CMAKE_SYSTEM_NAME STREQUAL FreeBSD)
85+
# On FreeBSD, we should not set U_TIMEZONE
8186
else()
8287
add_compile_definitions(
8388
$<$<COMPILE_LANGUAGE:C,CXX>:U_TIMEZONE=timezone>)

icuSources/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ endif()
3131
set_target_properties(_FoundationICU PROPERTIES
3232
INSTALL_RPATH "$ORIGIN")
3333

34+
if(LINKER_SUPPORTS_BUILD_ID)
35+
target_link_options(_FoundationICU PRIVATE "LINKER:--build-id=sha1")
36+
endif()
37+
3438
# Copy Headers to known directory for direct client (XCTest) test builds
3539
file(COPY
3640
include/

0 commit comments

Comments
 (0)