@@ -7,6 +7,9 @@ pub const Style = union(enum) {
7
7
/// A configure format supported by autotools that uses `#undef foo` to
8
8
/// mark lines that can be substituted with different values.
9
9
autoconf_undef : std.Build.LazyPath ,
10
+ /// Deprecated. Renamed to `autoconf_undef`.
11
+ /// To be removed after 0.14.0 is tagged.
12
+ autoconf : std.Build.LazyPath ,
10
13
/// A configure format supported by autotools that uses `@FOO@` output variables.
11
14
autoconf_at : std.Build.LazyPath ,
12
15
/// The configure format supported by CMake. It uses `@FOO@`, `${}` and
@@ -19,7 +22,7 @@ pub const Style = union(enum) {
19
22
20
23
pub fn getPath (style : Style ) ? std.Build.LazyPath {
21
24
switch (style ) {
22
- .autoconf_undef , .autoconf_at , .cmake = > | s | return s ,
25
+ .autoconf_undef , .autoconf , . autoconf_at , .cmake = > | s | return s ,
23
26
.blank , .nasm = > return null ,
24
27
}
25
28
}
@@ -193,7 +196,7 @@ fn make(step: *Step, options: Step.MakeOptions) !void {
193
196
const asm_generated_line = "; " ++ header_text ++ "\n " ;
194
197
195
198
switch (config_header .style ) {
196
- .autoconf_undef , .autoconf_at = > | file_source | {
199
+ .autoconf_undef , .autoconf , . autoconf_at = > | file_source | {
197
200
try output .appendSlice (c_generated_line );
198
201
const src_path = file_source .getPath2 (b , step );
199
202
const contents = std .fs .cwd ().readFileAlloc (arena , src_path , config_header .max_bytes ) catch | err | {
@@ -202,7 +205,7 @@ fn make(step: *Step, options: Step.MakeOptions) !void {
202
205
});
203
206
};
204
207
switch (config_header .style ) {
205
- .autoconf_undef = > try render_autoconf_undef (step , contents , & output , config_header .values , src_path ),
208
+ .autoconf_undef , .autoconf = > try render_autoconf_undef (step , contents , & output , config_header .values , src_path ),
206
209
.autoconf_at = > try render_autoconf_at (step , contents , & output , config_header .values , src_path ),
207
210
else = > unreachable ,
208
211
}
0 commit comments