Skip to content

Commit 4b8582d

Browse files
committed
config.h: Add missing MLD_CONFIG_MONOBUILD_KEEP_SHARED_HEADERS
- This commit add missing MLD_CONFIG_MONOBUILD_KEEP_SHARED_HEADERS and remove following from autogen: `"MLD_CONFIG_NO_ASM_VALUE_BARRIER", # TODO: Add to config?` Signed-off-by: willieyz <[email protected]>
1 parent 035063e commit 4b8582d

23 files changed

+330
-1
lines changed

examples/basic_deterministic/mldsa_native/custom_no_randomized_config.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,21 @@
134134
*****************************************************************************/
135135
/* #define MLD_CONFIG_MULTILEVEL_NO_SHARED */
136136

137+
/******************************************************************************
138+
* Name: MLD_CONFIG_MONOBUILD_KEEP_SHARED_HEADERS
139+
*
140+
* Description: This is only relevant for single compilation unit (SCU)
141+
* builds of mldsa-native. In this case, it determines whether
142+
* directives defined in parameter-set-independent headers should
143+
* be #undef'ined or not at the of the SCU file. This is needed
144+
* in multilevel builds.
145+
*
146+
* See examples/multilevel_build_native for an example.
147+
*
148+
* This can also be set using CFLAGS.
149+
*
150+
*****************************************************************************/
151+
/* #define MLD_CONFIG_MONOBUILD_KEEP_SHARED_HEADERS */
137152

138153
/******************************************************************************
139154
* Name: MLD_CONFIG_USE_NATIVE_BACKEND_ARITH

examples/monolithic_build/config_44.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,21 @@
132132
*****************************************************************************/
133133
/* #define MLD_CONFIG_MULTILEVEL_NO_SHARED */
134134

135+
/******************************************************************************
136+
* Name: MLD_CONFIG_MONOBUILD_KEEP_SHARED_HEADERS
137+
*
138+
* Description: This is only relevant for single compilation unit (SCU)
139+
* builds of mldsa-native. In this case, it determines whether
140+
* directives defined in parameter-set-independent headers should
141+
* be #undef'ined or not at the of the SCU file. This is needed
142+
* in multilevel builds.
143+
*
144+
* See examples/multilevel_build_native for an example.
145+
*
146+
* This can also be set using CFLAGS.
147+
*
148+
*****************************************************************************/
149+
/* #define MLD_CONFIG_MONOBUILD_KEEP_SHARED_HEADERS */
135150

136151
/******************************************************************************
137152
* Name: MLD_CONFIG_USE_NATIVE_BACKEND_ARITH

examples/monolithic_build/config_65.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,21 @@
132132
*****************************************************************************/
133133
/* #define MLD_CONFIG_MULTILEVEL_NO_SHARED */
134134

135+
/******************************************************************************
136+
* Name: MLD_CONFIG_MONOBUILD_KEEP_SHARED_HEADERS
137+
*
138+
* Description: This is only relevant for single compilation unit (SCU)
139+
* builds of mldsa-native. In this case, it determines whether
140+
* directives defined in parameter-set-independent headers should
141+
* be #undef'ined or not at the of the SCU file. This is needed
142+
* in multilevel builds.
143+
*
144+
* See examples/multilevel_build_native for an example.
145+
*
146+
* This can also be set using CFLAGS.
147+
*
148+
*****************************************************************************/
149+
/* #define MLD_CONFIG_MONOBUILD_KEEP_SHARED_HEADERS */
135150

136151
/******************************************************************************
137152
* Name: MLD_CONFIG_USE_NATIVE_BACKEND_ARITH

examples/monolithic_build/config_87.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,21 @@
132132
*****************************************************************************/
133133
/* #define MLD_CONFIG_MULTILEVEL_NO_SHARED */
134134

135+
/******************************************************************************
136+
* Name: MLD_CONFIG_MONOBUILD_KEEP_SHARED_HEADERS
137+
*
138+
* Description: This is only relevant for single compilation unit (SCU)
139+
* builds of mldsa-native. In this case, it determines whether
140+
* directives defined in parameter-set-independent headers should
141+
* be #undef'ined or not at the of the SCU file. This is needed
142+
* in multilevel builds.
143+
*
144+
* See examples/multilevel_build_native for an example.
145+
*
146+
* This can also be set using CFLAGS.
147+
*
148+
*****************************************************************************/
149+
/* #define MLD_CONFIG_MONOBUILD_KEEP_SHARED_HEADERS */
135150

136151
/******************************************************************************
137152
* Name: MLD_CONFIG_USE_NATIVE_BACKEND_ARITH

examples/monolithic_build_multilevel/multilevel_config.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,21 @@
133133
*****************************************************************************/
134134
/* #define MLD_CONFIG_MULTILEVEL_NO_SHARED */
135135

136+
/******************************************************************************
137+
* Name: MLD_CONFIG_MONOBUILD_KEEP_SHARED_HEADERS
138+
*
139+
* Description: This is only relevant for single compilation unit (SCU)
140+
* builds of mldsa-native. In this case, it determines whether
141+
* directives defined in parameter-set-independent headers should
142+
* be #undef'ined or not at the of the SCU file. This is needed
143+
* in multilevel builds.
144+
*
145+
* See examples/multilevel_build_native for an example.
146+
*
147+
* This can also be set using CFLAGS.
148+
*
149+
*****************************************************************************/
150+
/* #define MLD_CONFIG_MONOBUILD_KEEP_SHARED_HEADERS */
136151

137152
/******************************************************************************
138153
* Name: MLD_CONFIG_USE_NATIVE_BACKEND_ARITH

examples/monolithic_build_multilevel_native/multilevel_config.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,21 @@
137137
*****************************************************************************/
138138
/* #define MLD_CONFIG_MULTILEVEL_NO_SHARED */
139139

140+
/******************************************************************************
141+
* Name: MLD_CONFIG_MONOBUILD_KEEP_SHARED_HEADERS
142+
*
143+
* Description: This is only relevant for single compilation unit (SCU)
144+
* builds of mldsa-native. In this case, it determines whether
145+
* directives defined in parameter-set-independent headers should
146+
* be #undef'ined or not at the of the SCU file. This is needed
147+
* in multilevel builds.
148+
*
149+
* See examples/multilevel_build_native for an example.
150+
*
151+
* This can also be set using CFLAGS.
152+
*
153+
*****************************************************************************/
154+
/* #define MLD_CONFIG_MONOBUILD_KEEP_SHARED_HEADERS */
140155

141156
/******************************************************************************
142157
* Name: MLD_CONFIG_USE_NATIVE_BACKEND_ARITH

examples/monolithic_build_native/config_44.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,21 @@
134134
*****************************************************************************/
135135
/* #define MLD_CONFIG_MULTILEVEL_NO_SHARED */
136136

137+
/******************************************************************************
138+
* Name: MLD_CONFIG_MONOBUILD_KEEP_SHARED_HEADERS
139+
*
140+
* Description: This is only relevant for single compilation unit (SCU)
141+
* builds of mldsa-native. In this case, it determines whether
142+
* directives defined in parameter-set-independent headers should
143+
* be #undef'ined or not at the of the SCU file. This is needed
144+
* in multilevel builds.
145+
*
146+
* See examples/multilevel_build_native for an example.
147+
*
148+
* This can also be set using CFLAGS.
149+
*
150+
*****************************************************************************/
151+
/* #define MLD_CONFIG_MONOBUILD_KEEP_SHARED_HEADERS */
137152

138153
/******************************************************************************
139154
* Name: MLD_CONFIG_USE_NATIVE_BACKEND_ARITH

examples/monolithic_build_native/config_65.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,21 @@
134134
*****************************************************************************/
135135
/* #define MLD_CONFIG_MULTILEVEL_NO_SHARED */
136136

137+
/******************************************************************************
138+
* Name: MLD_CONFIG_MONOBUILD_KEEP_SHARED_HEADERS
139+
*
140+
* Description: This is only relevant for single compilation unit (SCU)
141+
* builds of mldsa-native. In this case, it determines whether
142+
* directives defined in parameter-set-independent headers should
143+
* be #undef'ined or not at the of the SCU file. This is needed
144+
* in multilevel builds.
145+
*
146+
* See examples/multilevel_build_native for an example.
147+
*
148+
* This can also be set using CFLAGS.
149+
*
150+
*****************************************************************************/
151+
/* #define MLD_CONFIG_MONOBUILD_KEEP_SHARED_HEADERS */
137152

138153
/******************************************************************************
139154
* Name: MLD_CONFIG_USE_NATIVE_BACKEND_ARITH

examples/monolithic_build_native/config_87.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,21 @@
134134
*****************************************************************************/
135135
/* #define MLD_CONFIG_MULTILEVEL_NO_SHARED */
136136

137+
/******************************************************************************
138+
* Name: MLD_CONFIG_MONOBUILD_KEEP_SHARED_HEADERS
139+
*
140+
* Description: This is only relevant for single compilation unit (SCU)
141+
* builds of mldsa-native. In this case, it determines whether
142+
* directives defined in parameter-set-independent headers should
143+
* be #undef'ined or not at the of the SCU file. This is needed
144+
* in multilevel builds.
145+
*
146+
* See examples/multilevel_build_native for an example.
147+
*
148+
* This can also be set using CFLAGS.
149+
*
150+
*****************************************************************************/
151+
/* #define MLD_CONFIG_MONOBUILD_KEEP_SHARED_HEADERS */
137152

138153
/******************************************************************************
139154
* Name: MLD_CONFIG_USE_NATIVE_BACKEND_ARITH

mldsa/src/config.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,21 @@
118118
*****************************************************************************/
119119
/* #define MLD_CONFIG_MULTILEVEL_NO_SHARED */
120120

121+
/******************************************************************************
122+
* Name: MLD_CONFIG_MONOBUILD_KEEP_SHARED_HEADERS
123+
*
124+
* Description: This is only relevant for single compilation unit (SCU)
125+
* builds of mldsa-native. In this case, it determines whether
126+
* directives defined in parameter-set-independent headers should
127+
* be #undef'ined or not at the of the SCU file. This is needed
128+
* in multilevel builds.
129+
*
130+
* See examples/multilevel_build_native for an example.
131+
*
132+
* This can also be set using CFLAGS.
133+
*
134+
*****************************************************************************/
135+
/* #define MLD_CONFIG_MONOBUILD_KEEP_SHARED_HEADERS */
121136

122137
/******************************************************************************
123138
* Name: MLD_CONFIG_USE_NATIVE_BACKEND_ARITH

0 commit comments

Comments
 (0)