Skip to content

Commit

Permalink
Use release triplets by default
Browse files Browse the repository at this point in the history
This means that all libraries will be build in release mode only and
against a fixed macOS deployment target when compiling natively too.
  • Loading branch information
fwcd committed Oct 13, 2023
1 parent a42c183 commit 5758f24
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions scripts/install-vcpkg-deps
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,11 @@ from pathlib import Path

ROOT = Path(__file__).resolve().parent.parent

TRIPLET_OSS = {
'Darwin': 'osx',
}

TRIPLET_ARCHS = {
'x86_64': 'x64',
'arm64': 'arm64',
TRIPLETS = {
'Darwin': {
'x86_64': 'x64-osx-min1015',
'arm64': 'arm64-osx-min1100',
}
}

# Packages to be built for the target architecture
Expand Down Expand Up @@ -73,9 +71,7 @@ PLATFORM_PACKAGES = {
HOST_PACKAGES = []

def platform_triplet():
arch = TRIPLET_ARCHS.get(platform.machine(), None)
os = TRIPLET_OSS.get(platform.system(), None)
return '-'.join([arch, os]) if os and arch else None
return TRIPLETS.get(platform.system(), {}).get(platform.machine(), None)

def main():
default_triplet = platform_triplet()
Expand Down

0 comments on commit 5758f24

Please sign in to comment.