Skip to content

Commit 0202e0f

Browse files
committed
On Mac create .dmg packages
This avoids the problem of macOS quarantining files that have been extracted from a .tar.gz.
1 parent 63a368c commit 0202e0f

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
88

99
### Fixed
1010
- Building from sources created by git archive (#242).
11+
- macOS no longer quarantines files from the macOS package.
1112

1213
### Changed
1314
- Updated multilib to use LLVM multilib.yaml 1.0 (#250).
1415
- `*.cfg` files for library variant selection removed in favor of multilib
16+
- The macOS package is now a .dmg instead of .tar.gz.
1517

1618
### Removed
1719

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1244,6 +1244,9 @@ endif()
12441244
if(LLVM_TOOLCHAIN_CROSS_BUILD_MINGW OR WIN32)
12451245
set(cpack_generator ZIP)
12461246
set(package_filename_extension ".zip")
1247+
elseif(CMAKE_OSX_ARCHITECTURES)
1248+
set(cpack_generator DragNDrop)
1249+
set(package_filename_extension ".dmg")
12471250
else()
12481251
set(cpack_generator TGZ)
12491252
set(package_filename_extension ".tar.gz")

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ and extract the archive into an arbitrary directory.
7373
On Ubuntu 20.04 and later `libtinfo5` is required: `apt install libtinfo5`.
7474
(This requirement will be removed in LLVM Embedded Toolchain for Arm 17.)
7575

76-
On macOS the toolchain binaries are quarantined by com.apple.quarantine. To
77-
run the executables change directory to bin and run the following command to
78-
remove the com.apple.quarantine:
76+
Prior to LLVM Embedded Toolchain for Arm 17, on macOS the toolchain binaries
77+
are quarantined by com.apple.quarantine. To run the executables change directory
78+
to bin and run the following command to remove the com.apple.quarantine:
7979

8080
```
8181
find . -type f -perm +0111 | xargs xattr -d com.apple.quarantine

0 commit comments

Comments
 (0)