Skip to content

Commit

Permalink
Properly handle ULP sources in incremental builds
Browse files Browse the repository at this point in the history
Resolves #1320
  • Loading branch information
valeros committed Mar 4, 2024
1 parent 9b0c95d commit f3953f8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions builder/frameworks/ulp.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,19 @@ def compile_ulp_binary():
"build",
)

return ulp_env.Command(
# The `build.ninja` dependency is always generated with the same content
# so a cloned environment with a decider that depends on a timestamp is used
ulp_binary_env = ulp_env.Clone()
ulp_binary_env.Decider("timestamp-newer")

return ulp_binary_env.Command(
[
os.path.join(ULP_BUILD_DIR, "ulp_main.h"),
os.path.join(ULP_BUILD_DIR, "ulp_main.ld"),
os.path.join(ULP_BUILD_DIR, "ulp_main.bin"),
],
None,
ulp_env.VerboseAction(" ".join(cmd), "Generating ULP project files $TARGETS"),
ulp_binary_env.VerboseAction(" ".join(cmd), "Generating ULP project files $TARGETS"),
)


Expand Down

0 comments on commit f3953f8

Please sign in to comment.