Skip to content

Commit

Permalink
Build housekeeping updates
Browse files Browse the repository at this point in the history
  • Loading branch information
hsutter committed Nov 2, 2024
1 parent ddde3d8 commit 6b3934b
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 7 deletions.
6 changes: 6 additions & 0 deletions build_h2.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@echo off
cd source
cppfront reflect.h2 -verb
cd ..\include
cppfront cpp2regex.h2 -verb
cd..
4 changes: 4 additions & 0 deletions gen_build.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@echo off
cppfront -_gen_build > source\build.info
@echo Build stamp updated to:
type source\build.info
2 changes: 1 addition & 1 deletion regression-tests/test-results/version
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

cppfront compiler v0.8.0 Build 9A31:1626
cppfront compiler v0.8.0 Build 9B01:1726
SPDX-License-Identifier Apache-2.0 WITH LLVM-exception
Copyright (c) 2022-2024 Herb Sutter
2 changes: 1 addition & 1 deletion source/build.info
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"9A31:1626"
"9B01:1726"
10 changes: 5 additions & 5 deletions source/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,7 @@ class cmdline_processor

// This is used only by the owner of the 'main' branch
// to generate stable build version strings
auto gen_version()
auto gen_build()
-> void
{
help_requested = true;
Expand Down Expand Up @@ -945,11 +945,11 @@ static cmdline_processor::register_flag cmd_version(
[]{ cmdline.print_version(); }
);

static cmdline_processor::register_flag cmd_gen_version(
static cmdline_processor::register_flag cmd_gen_build(
0,
"_gen_version",
"Generate version information",
[]{ cmdline.gen_version(); }
"_gen_build",
"Generate build information",
[]{ cmdline.gen_build(); }
);

static auto flag_verbose = false;
Expand Down

0 comments on commit 6b3934b

Please sign in to comment.