diff --git a/bearssl.nimble b/bearssl.nimble index ff41ebd..1587639 100644 --- a/bearssl.nimble +++ b/bearssl.nimble @@ -1,5 +1,5 @@ # Package -version = "0.1.4" +version = "0.1.5" author = "Status Research & Development GmbH" description = "BearSSL wrapper" license = "MIT or Apache License 2.0" diff --git a/bearssl/decls.nim b/bearssl/decls.nim index 77a9f4c..5fbdc06 100644 --- a/bearssl/decls.nim +++ b/bearssl/decls.nim @@ -8,7 +8,7 @@ ## those terms. ## This module implements interface with BearSSL library sources. import strutils -from os import DirSep +from os import DirSep, quoteShell const bearPath = currentSourcePath.rsplit(DirSep, 1)[0] & DirSep & @@ -31,9 +31,9 @@ const bearToolsPath = bearPath & "tools" & DirSep bearRootPath = bearSrcPath & DirSep -{.passC: "-I" & bearSrcPath} -{.passC: "-I" & bearIncPath} -{.passC: "-I" & bearPath & "tools"} +{.passC: "-I" & quoteShell(bearSrcPath)} +{.passC: "-I" & quoteShell(bearIncPath)} +{.passC: "-I" & quoteShell(bearPath & "tools")} when defined(windows): {.passC: "-DBR_USE_WIN32_TIME=1".}