Skip to content

Commit 1bdb093

Browse files
committed
Update ab.
1 parent a1e2191 commit 1bdb093

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

build/ab.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,5 +114,5 @@ $(OBJ)/build.ninja $(OBJ)/build.targets &:
114114

115115
include $(OBJ)/build.targets
116116
.PHONY: $(ninja-targets)
117-
$(ninja-targets) &: $(OBJ)/build.ninja
117+
$(ninja-targets) : $(OBJ)/build.ninja
118118
+$(hide) $(NINJA) -f $(OBJ)/build.ninja $@

build/c.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ def programimpl(
429429
simplerule(
430430
replaces=self,
431431
ins=cfiles + libs,
432-
outs=[f"={self.localname}$(EXT)"],
432+
outs=[f"={self.localname}{toolchain.EXE}"],
433433
deps=deps,
434434
label=label,
435435
commands=commands,

build/toolchain.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1+
import platform
2+
3+
_is_windows = (platform.system() == "Windows")
4+
15
class Toolchain:
26
PREFIX = ""
7+
EXE = ".exe" if _is_windows else ""
38

49

510
class HostToolchain(Toolchain):

0 commit comments

Comments
 (0)