Skip to content

Commit f3953f8

Browse files
committed
Properly handle ULP sources in incremental builds
Resolves #1320
1 parent 9b0c95d commit f3953f8

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

builder/frameworks/ulp.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,14 +124,19 @@ def compile_ulp_binary():
124124
"build",
125125
)
126126

127-
return ulp_env.Command(
127+
# The `build.ninja` dependency is always generated with the same content
128+
# so a cloned environment with a decider that depends on a timestamp is used
129+
ulp_binary_env = ulp_env.Clone()
130+
ulp_binary_env.Decider("timestamp-newer")
131+
132+
return ulp_binary_env.Command(
128133
[
129134
os.path.join(ULP_BUILD_DIR, "ulp_main.h"),
130135
os.path.join(ULP_BUILD_DIR, "ulp_main.ld"),
131136
os.path.join(ULP_BUILD_DIR, "ulp_main.bin"),
132137
],
133138
None,
134-
ulp_env.VerboseAction(" ".join(cmd), "Generating ULP project files $TARGETS"),
139+
ulp_binary_env.VerboseAction(" ".join(cmd), "Generating ULP project files $TARGETS"),
135140
)
136141

137142

0 commit comments

Comments
 (0)