mirror of
https://github.com/logos-storage/nim-json-rpc.git
synced 2026-01-11 01:53:11 +00:00
enable cross-compilation
This commit is contained in:
parent
ded863fcb1
commit
b0e82cb70a
@ -3,7 +3,7 @@ import
|
||||
chronos,
|
||||
jsonmarshal, errors
|
||||
|
||||
from strutils import toLowerAscii
|
||||
from strutils import toLowerAscii, replace
|
||||
|
||||
export
|
||||
chronos
|
||||
@ -205,4 +205,4 @@ macro createRpcSigs*(clientType: untyped, filePath: static[string]): untyped =
|
||||
## calls, based on their parameters.
|
||||
## Inputs are marshalled to json, and results are put into the signature's
|
||||
## Nim type.
|
||||
result = processRpcSigs(clientType, staticRead($filePath).parseStmt())
|
||||
result = processRpcSigs(clientType, staticRead($filePath.replace('\\', '/')).parseStmt())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user