Skip to content

Commit 6b3934b

Browse files
committed
Build housekeeping updates
1 parent ddde3d8 commit 6b3934b

File tree

5 files changed

+17
-7
lines changed

5 files changed

+17
-7
lines changed

build_h2.bat

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
@echo off
2+
cd source
3+
cppfront reflect.h2 -verb
4+
cd ..\include
5+
cppfront cpp2regex.h2 -verb
6+
cd..

gen_build.bat

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
@echo off
2+
cppfront -_gen_build > source\build.info
3+
@echo Build stamp updated to:
4+
type source\build.info

regression-tests/test-results/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11

2-
cppfront compiler v0.8.0 Build 9A31:1626
2+
cppfront compiler v0.8.0 Build 9B01:1726
33
SPDX-License-Identifier Apache-2.0 WITH LLVM-exception
44
Copyright (c) 2022-2024 Herb Sutter

source/build.info

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"9A31:1626"
1+
"9B01:1726"

source/common.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,7 @@ class cmdline_processor
883883

884884
// This is used only by the owner of the 'main' branch
885885
// to generate stable build version strings
886-
auto gen_version()
886+
auto gen_build()
887887
-> void
888888
{
889889
help_requested = true;
@@ -945,11 +945,11 @@ static cmdline_processor::register_flag cmd_version(
945945
[]{ cmdline.print_version(); }
946946
);
947947

948-
static cmdline_processor::register_flag cmd_gen_version(
948+
static cmdline_processor::register_flag cmd_gen_build(
949949
0,
950-
"_gen_version",
951-
"Generate version information",
952-
[]{ cmdline.gen_version(); }
950+
"_gen_build",
951+
"Generate build information",
952+
[]{ cmdline.gen_build(); }
953953
);
954954

955955
static auto flag_verbose = false;

0 commit comments

Comments
 (0)