-
Couldn't load subscription status.
- Fork 1.1k
build: Fix #include "..." paths to get rid of further -I arguments #1116
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
build: Fix #include "..." paths to get rid of further -I arguments #1116
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Concept ACK.
|
Should this diff be added as well --- a/src/modules/recovery/tests_exhaustive_impl.h
+++ b/src/modules/recovery/tests_exhaustive_impl.h
@@ -7,7 +7,7 @@
#ifndef SECP256K1_MODULE_RECOVERY_EXHAUSTIVE_TESTS_H
#define SECP256K1_MODULE_RECOVERY_EXHAUSTIVE_TESTS_H
-#include "src/modules/recovery/main_impl.h"
+#include "main_impl.h"
#include "../../../include/secp256k1_recovery.h"
void test_exhaustive_recovery_sign(const secp256k1_context *ctx, const secp256k1_ge *group) {? |
|
@real-or-random Bitcoin Core uses |
|
In order to simplify building without build system (#929), we tried to get rid of as many mandatory compiler args as possible. #925 tried to get rid of Changing everything to |
d63719f to
ac39773
Compare
Done, thanks. |
Good point; minimizing complexity for people building without build system support is a good reason to stick with "". |
Wanna ACK then? |
|
ACK ac39773 |
|
Removing of But that is not the case. Two headers cannot be found (when combining this PR and #1113): secp256k1/src/modules/ecdh/bench_impl.h Line 10 in 43756da
Wondering why those headers are found using Autotools? FWIW, all other |
|
@hebasto That's an "interesting" observation. Apparently autotools always add |
|
As the goal of this PR is to "Fix #include "..." paths", could those two paths be fixed as well? |
Another reason to rid of the config header. |
This simplifies building without a build system. This is in line with bitcoin-core#925; the paths fixed here were either forgotten there or only introduced later. This commit also makes the Makefile stricter so that further "wrong" #include paths will lead to build errors even in autotools builds. This belongs to bitcoin-core#929. Co-authored-by: Hennadii Stepanov <[email protected]>
ac39773 to
40a3473
Compare
|
@hebasto Okay I added these additional fixes, I hope that was everything now. The issue is that we can't really enforce that policy using autotools. One can add
Yep. If we do this, then we could enforce the policy... We could also just add a "manual" build to CI. This is already on the task list in #929. But this can be done in a separate PR. Funnily, the build worked for me locally when setting before fix:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 40a3473
This simplifies building without a build system.
This is in line with #925; the paths fixed here were either forgotten
there or only introduced later. This commit also makes the Makefile
stricter so that further "wrong" #include paths will lead to build
errors even in autotools builds.
This belongs to #929.