Skip to content

Commit

Permalink
Merge pull request #3 from mtgto/use-mcrc
Browse files Browse the repository at this point in the history
Use compiler flags -mcrc
  • Loading branch information
mtgto committed Aug 26, 2023
2 parents 87139ac + a2a5fec commit 1124b65
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ let package = Package(
],
cSettings: [
// .define("_SZ_ALLOC_DEBUG") // if you want to debug alloc/free operations to stderr.
.unsafeFlags(["-march=armv8+crc"], .when(platforms: [.iOS]))
.unsafeFlags(["-mcrc"], .when(platforms: [.iOS]))
]
),
.testTarget(
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ A tiny Swift library to extract 7zip archive using [LZMA SDK v23.01](https://www

- [x] Extract a file from 7z archive file to memory

## Requirements

- iOS 13+
- macOS 10.15+

## Not supported features

- Extract encrypted files
Expand All @@ -30,6 +35,8 @@ let data = try archive.extract(entry: entry)

Add `https://github.com/mtgto/SevenZip.swift` to your Package.swift.

**IMPORTANT NOTE**: If you are using this library, you must specify git revision, not by version. See [#1 comment](https://github.com/mtgto/SevenZip.swift/issues/1#issuecomment-1690084540) for details.

## Related projects

- [PLzmaSDK](https://github.com/OlehKulykov/PLzmaSDK)
Expand Down

0 comments on commit 1124b65

Please sign in to comment.