Skip to content

Commit

Permalink
Merge #221
Browse files Browse the repository at this point in the history
221: niminst: set default path for binary to bin/ r=alaviss a=alaviss

This is used by csources builder to know where to put its binary.
Defaults to the bin/ folder relative to the source.

Without this, the generated csources will not be built due to missing
output folder.

Co-authored-by: Leorize <leorize+oss@disroot.org>
  • Loading branch information
bors[bot] and alaviss authored Jan 31, 2022
2 parents 4ffcce4 + 2dd92cd commit 36d6c97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/niminst/niminst.nim
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func iniConfigData(c: var ConfigData) =

func firstBinPath(c: ConfigData): string =
if c.binPaths.len > 0: result = c.binPaths[0]
else: result = ""
else: result = "bin"

func `\`(a, b: string): string =
result = if a.len == 0: b else: a & '\\' & b
Expand Down

0 comments on commit 36d6c97

Please sign in to comment.