diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index eb4d041..54f0754 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -50,7 +50,8 @@ jobs: brew update brew install \ findutils \ - libomp + libomp \ + llvm@14 - name: Install tools and libraries via MSYS2 (Windows) if: matrix.platform.os == 'windows' diff --git a/config.nims b/config.nims index c4caedf..063e9b5 100644 --- a/config.nims +++ b/config.nims @@ -1,3 +1,5 @@ +--styleCheck:usages +--styleCheck:error --threads:on --tlsEmulation:off # begin Nimble config (version 1) diff --git a/leopard/leopard.nim b/leopard/leopard.nim index fda40b8..dd749b9 100644 --- a/leopard/leopard.nim +++ b/leopard/leopard.nim @@ -143,7 +143,7 @@ func decode*( parityPtr[i] = nil let - res = leo_decode( + res = leoDecode( self.bufSize.culonglong, self.buffers.cuint, self.parity.cuint, @@ -218,7 +218,7 @@ proc init[TT: Leo]( # concurrently instantiate the library twice, and # might end up with two distinct versions - not a big # deal but will defeat the purpose of this `once` block - if (let res = leoinit(); res.ord != LeopardSuccess.ord): + if (let res = leoInit(); res.ord != LeopardSuccess.ord): return err(leoResultString(res.LeopardResult)) var diff --git a/leopard/wrapper.nim b/leopard/wrapper.nim index f6fba2d..da29704 100644 --- a/leopard/wrapper.nim +++ b/leopard/wrapper.nim @@ -144,8 +144,8 @@ static: discard gorge "rm -rf " & buildDir raise (ref Defect)(msg: "Failed to build Leopard-RS") -{.passC: LeopardCompilerFlags & " " & LeopardExtraCompilerFlags.} -{.passL: LeopardLinkerFlags & " " & LeopardExtraLinkerFlags.} +{.passc: LeopardCompilerFlags & " " & LeopardExtraCompilerFlags.} +{.passl: LeopardLinkerFlags & " " & LeopardExtraLinkerFlags.} {.pragma: leo, cdecl, header: LeopardHeader.} @@ -240,7 +240,7 @@ proc leoEncode*( ## ## leo_decode_work_count() ## -## Calculate the number of work_data buffers to provide to leo_decode(). +## Calculate the number of work_data buffers to provide to leoDecode(). ## ## The sum of original_count + recovery_count must not exceed 65536. ## @@ -251,7 +251,7 @@ proc leoEncode*( proc leoDecodeWorkCount*(originalCount: cuint; recoveryCount: cuint): cuint {.leo, importc: "leo_decode_work_count".} ## -## leo_decode() +## leoDecode() ## ## Decode original data from recovery data. ##