File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -114,5 +114,5 @@ $(OBJ)/build.ninja $(OBJ)/build.targets &:
114114
115115include $(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 $@
Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff line change 1+ import platform
2+
3+ _is_windows = (platform .system () == "Windows" )
4+
15class Toolchain :
26 PREFIX = ""
7+ EXE = ".exe" if _is_windows else ""
38
49
510class HostToolchain (Toolchain ):
You can’t perform that action at this time.
0 commit comments