From 52590023bcbbfc5218061e0f40482266878e7209 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C8=98tefan=20Talpalaru?= Date: Thu, 17 Oct 2019 16:58:26 +0200 Subject: [PATCH] ARM64 support --- .gitignore | 2 ++ .travis.yml | 12 +++++++++--- bearssl/decls.nim | 3 ++- 3 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5f3c68e --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +nimcache/ + diff --git a/.travis.yml b/.travis.yml index 9ee1b9e..4be80bc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,9 +9,15 @@ git: # when multiple CI builds are queued, the tested commit needs to be in the last X commits cloned with "--depth X" depth: 10 -os: - - linux - - osx +matrix: + include: + - os: linux + arch: amd64 + sudo: required + - os: linux + arch: arm64 + sudo: required + - os: osx install: # build nim from our own branch - this to avoid the day-to-day churn and diff --git a/bearssl/decls.nim b/bearssl/decls.nim index b536f0f..e137954 100644 --- a/bearssl/decls.nim +++ b/bearssl/decls.nim @@ -49,7 +49,8 @@ else: when sizeof(int) == 8: {.passC: "-DBR_64=1".} - {.passC:" -DBR_amd64=1".} + when hostCPU == "amd64": + {.passC:" -DBR_amd64=1".} when defined(vcc): {.passC: "-DBR_UMUL128=1".} else: