Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[make] Recompile library when source files change #89

Conversation

tobil4sk
Copy link
Contributor

@tobil4sk tobil4sk commented Sep 13, 2024

The build has been split up into separate object files, and each object file is recompiled if the relevant source/header file changes.

Previously, it would never recompile the library, regardless of whether any files had changed, so running make clean was necessary every time (which was inconvenient when I was doing a git bisect for #90).

The build has been split up into separate object files, and each object
file is recompiled if the relevant source/header file changes.

Previously, it would never recompile the library, regardless of whether
any files had changed, so running `make clean` was necessary every time.
Firstly, simdjson.cpp doesn't actually include simdjson.h, and
luasimdjson.cpp includes both luasimdjson.h and simdjson.h. Rather than
specifying the dependencies manually (where there is room for error)
it's better to let the compiler describe the file dependencies (by
generating .d files with -MMD and -MP), this avoids mistakes and doesn't
require manual intervention if the files ever change.
@FourierTransformer FourierTransformer merged commit f7b3a76 into FourierTransformer:master Sep 16, 2024
23 checks passed
@tobil4sk tobil4sk deleted the fix/make-target-dependencies branch September 16, 2024 08:06
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.

2 participants