Skip to content

Commit

Permalink
build: compatible for unsupportted go images (#701)
Browse files Browse the repository at this point in the history
  • Loading branch information
AsterDY authored Oct 15, 2024
1 parent edc70ff commit 8bfed73
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 154 deletions.
2 changes: 1 addition & 1 deletion fuzz/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ fuzz:
mkdir -p ${corpusdir}
rm -rf ./go-fuzz-corpus
git clone https://github.com/dvyukov/go-fuzz-corpus.git ./go-fuzz-corpus/
go install golang.org/x/tools/cmd/file2fuzz@latest
go install golang.org/x/tools/cmd/file2fuzz@v0.10.0
file2fuzz -o ${corpusdir} ./go-fuzz-corpus/json/corpus/* ./corpus/*

run:
Expand Down
2 changes: 1 addition & 1 deletion internal/base64/b64_amd64.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build amd64,go1.16
// +build amd64,go1.17,!go1.24

/**
* Copyright 2023 ByteDance Inc.
Expand Down
2 changes: 1 addition & 1 deletion internal/base64/b64_compat.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !amd64 !go1.16
// +build !amd64 !go1.17 go1.24

/*
* Copyright 2022 ByteDance Inc.
Expand Down
2 changes: 1 addition & 1 deletion internal/rt/asm_amd64.s
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !noasm !appengine
// +build !noasm,amd64 !appengine,amd64
// Code generated by asm2asm, DO NOT EDIT·

#include "go_asm.h"
Expand Down
2 changes: 1 addition & 1 deletion internal/rt/asm_arm64.s → internal/rt/asm_compat.s
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !noasm !appengine
// +build !noasm,!amd64 !appengine,!amd64
// Code generated by asm2asm, DO NOT EDIT.

#include "go_asm.h"
Expand Down
4 changes: 2 additions & 2 deletions loader/funcdata_compat.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build !go1.17
// +build !go1.17
//go:build !go1.17 || go1.24
// +build !go1.17 go1.24

/*
* Copyright 2021 ByteDance Inc.
Expand Down
File renamed without changes.
146 changes: 0 additions & 146 deletions loader/loader_go116_test.go

This file was deleted.

1 change: 0 additions & 1 deletion loader/loader_latest.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// +build go1.17,!go1.24

/*
* Copyright 2021 ByteDance Inc.
Expand Down

0 comments on commit 8bfed73

Please sign in to comment.