@@ -738,32 +738,40 @@ TARGET_H_INCLUDE = -add-early-include '"krml/internal/target.h"'
738738# Note: due to backwards-compat, the syntax for the option is not super great...
739739# it's `-add-include 'Foo:"bar.h"'` (include added to Foo.h) and
740740# `-add-include 'Foo.c:"bar.h"'` (include added to Foo.c). Note how the former
741- # doesn't have the extension while the latter does.
741+ # doesn't have the file extension while the latter does.
742+ # Note: the syntax got worse, now Foo.h:"bar.h" means the INTERNAL header internal/Foo.h includes
743+ # bar.h
744+ # Note: we would like to maintain the invariant (as of Feb 2025) that we NEVER include libintvector.h from a
745+ # public header. See https://github.com/python/cpython/issues/130213
746+ # FIXME: Sha3_Simd256 does *not* have an internal header so we can't enforce the invariant here
742747INTRINSIC_FLAGS = \
743748 -add-include 'Hacl_P256.c:"lib_intrinsics.h"' \
744749 \
745750 -add-include 'Hacl_AEAD_Chacha20Poly1305_Simd128.c:"libintvector.h"' \
746751 -add-include 'Hacl_Chacha20_Vec128.c:"libintvector.h"' \
747752 -add-include 'Hacl_SHA2_Vec128.c:"libintvector.h"' \
748753 \
749- -add-include 'Hacl_Hash_Blake2s_Simd128:"libintvector.h"' \
750- -add-include 'Hacl_MAC_Poly1305_Simd128:"libintvector.h"' \
754+ -add-include 'Hacl_Hash_Blake2s_Simd128.h :"libintvector.h"' \
755+ -add-include 'Hacl_MAC_Poly1305_Simd128.h :"libintvector.h"' \
751756 \
752757 -add-include 'Hacl_AEAD_Chacha20Poly1305_Simd256.c:"libintvector.h"' \
753758 -add-include 'Hacl_Chacha20_Vec256.c:"libintvector.h"' \
754759 -add-include 'Hacl_SHA2_Vec256.c:"libintvector.h"' \
755760 \
756- -add-include 'Hacl_Hash_Blake2b_Simd256:"libintvector.h"' \
757- -add-include 'Hacl_MAC_Poly1305_Simd256:"libintvector.h"' \
761+ -add-include 'Hacl_Hash_Blake2b_Simd256.h :"libintvector.h"' \
762+ -add-include 'Hacl_MAC_Poly1305_Simd256.h :"libintvector.h"' \
758763 \
759764 -add-include 'Hacl_Hash_SHA3_Simd256:"libintvector.h"' \
760- -add-include 'Hacl_Streaming_Types:"libintvector.h"'
765+ -add-include 'Vale.h:"libintvector.h"' \
766+ -add-include 'Vale.h:<inttypes.h>' \
767+ -add-include 'EverCrypt_Hash.h:"libintvector.h"' \
768+ -add-include 'Hacl_Streaming_HMAC.h:"libintvector-shim.h"'
761769
762770# Disabled for distributions that don't include code based on intrinsics.
763771INTRINSIC_INT_FLAGS = \
764772 -add-include 'Hacl_P256:"lib_intrinsics.h"' \
765773 -add-include 'Hacl_Bignum:"lib_intrinsics.h"' \
766- -add-include 'Hacl_Bignum_Base:"lib_intrinsics.h"' \
774+ -add-include 'Hacl_Bignum_Base.h :"lib_intrinsics.h"' \
767775 -add-include 'Hacl_K256_ECDSA:"lib_intrinsics.h"'
768776
769777# Disables tests; overriden in Wasm where tests indicate what can be compiled.
0 commit comments