Skip to content

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
@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