Skip to content

Commit

Permalink
release v1.0.52
Browse files Browse the repository at this point in the history
  • Loading branch information
xhd2015 committed Nov 10, 2024
1 parent a6f0088 commit 4123ef9
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 12 deletions.
2 changes: 1 addition & 1 deletion cmd/xgo/runtime_gen/core/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"
)

const VERSION = "1.0.49"
const VERSION = "1.0.52"
const REVISION = "37977b002ee8cc375e071b7ac23e8bb67a2de64d+1"
const NUMBER = 308

Expand Down
12 changes: 6 additions & 6 deletions cmd/xgo/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ import "fmt"
// REVISION and NUMBER are auto updated when run 'git commit'
// VERSION is manually updated when needed a new tag
// see also runtime/core/version.go
const VERSION = "1.0.51"
const REVISION = "7f408a387574ea73849b2cb3d82fe3b2c44f885a+1"
const NUMBER = 323
const VERSION = "1.0.52"
const REVISION = "a6f0088f2e43fe837c905792459dfca4e1022a0b+1"
const NUMBER = 324

// the matching runtime/core's version
// manually updated
const CORE_VERSION = "1.0.49"
const CORE_REVISION = "37977b002ee8cc375e071b7ac23e8bb67a2de64d+1"
const CORE_NUMBER = 308
const CORE_VERSION = "1.0.52"
const CORE_REVISION = "a6f0088f2e43fe837c905792459dfca4e1022a0b+1"
const CORE_NUMBER = 324

func getRevision() string {
return formatRevision(VERSION, REVISION, NUMBER)
Expand Down
6 changes: 3 additions & 3 deletions runtime/core/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"os"
)

const VERSION = "1.0.49"
const REVISION = "37977b002ee8cc375e071b7ac23e8bb67a2de64d+1"
const NUMBER = 308
const VERSION = "1.0.52"
const REVISION = "a6f0088f2e43fe837c905792459dfca4e1022a0b+1"
const NUMBER = 324

// these fields will be filled by compiler, see CORE_VERSION in cmd/xgo/version.go
const XGO_VERSION = ""
Expand Down
27 changes: 25 additions & 2 deletions script/generate/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,27 @@ const (
GenernateType_RuntimeVersion GenernateType = "runtime-version"
GenernateType_StackTraceDef GenernateType = "stack-trace-def"
GenernateType_InstallSrc GenernateType = "install-src"
GenernateType_XgoRuntime GenernateType = "xgo-runtime"
GenernateType_XgoRuntimeGen GenernateType = "cmd/xgo/runtime_gen"
)

var allGenerateTypes = []GenernateType{
GenernateType_DotAll,
GenernateType_CompilerPatch,
GenernateType_CompilerHelperCode,
GenernateType_CompilerPatternCode,
GenernateType_RuntimeDef,
GenernateType_RuntimeVersion,
GenernateType_StackTraceDef,
GenernateType_InstallSrc,
GenernateType_XgoRuntimeGen,
}

func main() {
args := os.Args[1:]

var rootDir string
var subGens []GenernateType
var list bool
n := len(args)
for i := 0; i < n; i++ {
arg := args[i]
Expand All @@ -46,6 +59,10 @@ func main() {
i++
continue
}
if arg == "--list" {
list = true
continue
}
if !strings.HasPrefix(arg, "-") {
subGens = append(subGens, GenernateType(arg))
continue
Expand All @@ -54,6 +71,12 @@ func main() {
os.Exit(1)
}

if list {
for _, genType := range allGenerateTypes {
fmt.Println(genType)
}
return
}
err := generate(rootDir, subGens)
if err != nil {
fmt.Fprintf(os.Stderr, "%v\n", err)
Expand Down Expand Up @@ -172,7 +195,7 @@ func generate(rootDir string, subGens SubGens) error {
return err
}
}
if subGens.Has(GenernateType_XgoRuntime) {
if subGens.Has(GenernateType_XgoRuntimeGen) {
err := genXgoRuntime(rootDir)
if err != nil {
return err
Expand Down

0 comments on commit 4123ef9

Please sign in to comment.