Skip to content

Commit 78b9a58

Browse files
author
Yi Duan
authored
chore: emit //go:build instead of // +build (#10)
1 parent 329ed4b commit 78b9a58

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

asm2asm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2494,15 +2494,15 @@ def main():
24942494

24952495
# convert the original sources
24962496
if OUTPUT_RAW:
2497-
asm.out.append('// +build amd64')
2497+
asm.out.append('//go:build amd64')
24982498
asm.out.append('// Code generated by asm2asm, DO NOT EDIT.')
24992499
asm.out.append('')
25002500
asm.out.append('package %s' % pkg)
25012501
asm.out.append('')
25022502
## native text
25032503
asm.out.append('var Text%s = []byte{' % STUB_NAME)
25042504
else:
2505-
asm.out.append('// +build !noasm !appengine')
2505+
asm.out.append('//go:build !noasm !appengine')
25062506
asm.out.append('// Code generated by asm2asm, DO NOT EDIT.')
25072507
asm.out.append('')
25082508
asm.out.append('#include "go_asm.h"')

0 commit comments

Comments
 (0)