Skip to content

Commit

Permalink
生成.so文件时添加 -race
Browse files Browse the repository at this point in the history
  • Loading branch information
juniaoshaonian committed May 27, 2024
1 parent 9b32bb8 commit 7a38cc6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion spi/testdata/user_service/a.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
package main

// 测试用
//go:generate go build --buildmode=plugin -o a.so ./a.go
//go:generate go build -race --buildmode=plugin -o a.so ./a.go

type UserService struct{}

Expand Down
2 changes: 1 addition & 1 deletion spi/testdata/user_service2/a/a.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:generate go build --buildmode=plugin -o ../a.so ./a.go
//go:generate go build -race --buildmode=plugin -o ../a.so ./a.go

package main

Expand Down
2 changes: 1 addition & 1 deletion spi/testdata/user_service2/b/b.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:generate go build --buildmode=plugin -o ../b.so ./b.go
//go:generate go build -race --buildmode=plugin -o ../b.so ./b.go
package main

// 测试用
Expand Down

0 comments on commit 7a38cc6

Please sign in to comment.