Skip to content

Commit

Permalink
deps: add template for generated headers
Browse files Browse the repository at this point in the history
OpenSSL 3.0 has a number of header files that are generated, and
currently these headers are copied into the architecture specific
directories. This is done for each asm type, 'asm', 'asm_avx2', and
'no-asm' which has takes up quite a lot of disk space and also becomes
an issue with the headers.tar file which has increased due to this.

This commit adds copies the headers to a common directory for the
architecture, for example with linux-x86_64 there will be a directory
named deps/openssl/config/archs/linux-x86_64/common/include where the
headers will be copied (into subdirectories 'openssl' and 'crypto'.
And in the original locations a header file with the same name will be
generated which points (includes) the common header file.

Fixes: nodejs#42081
  • Loading branch information
danbev committed Apr 25, 2022
1 parent 2691222 commit e90569f
Show file tree
Hide file tree
Showing 197 changed files with 99 additions and 16,084 deletions.
1 change: 1 addition & 0 deletions deps/openssl/config/arch_include.h.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "%%- $path -%%"

This file was deleted.

This file was deleted.

197 changes: 0 additions & 197 deletions deps/openssl/config/archs/BSD-x86/asm/include/openssl/opensslconf.h

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit e90569f

Please sign in to comment.