Skip to content

Makefile: force regen .o when hl.h changes - #982

Merged
yuxiaomao merged 1 commit into
HaxeFoundation:masterfrom
yuxiaomao:dev-makefile-o
Sep 17, 2026
Merged

yuxiaomao merged 1 commit into
HaxeFoundation:masterfrom
yuxiaomao:dev-makefile-o

Conversation

@yuxiaomao

@yuxiaomao yuxiaomao commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

-MMD: generate a dependency output file .d based on user header files
-include $(DEPS): include the dependencies
-MP: add a phony target for each dependency other than the main file, work around errors if remove header files

We had a case where I run make without a make clean after JIT2, the hl.h is changed (a field capture_break_context is added in the middle of hl_setup bb414eb), but the process.o isn't rebuild, causing runtime error (corrupted get_wrapper by profile_event). I think it's better to detect this in the makefile and auto rebuild.

@yuxiaomao
yuxiaomao merged commit ee7de7b into HaxeFoundation:master Sep 17, 2026
21 checks passed
@yuxiaomao
yuxiaomao deleted the dev-makefile-o branch September 17, 2026 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant