summaryrefslogtreecommitdiff
path: root/pkg/qbe/gen.lua
blob: 418006a1474c8b7801e52d9ee91ebae734d79973 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
cflags{
	'-std=c99', '-Wall', '-Wextra', '-Wpedantic',
	'-Wno-format-overflow', '-Wno-format-truncation', '-Wno-maybe-uninitialized',
	'-I $dir',
}

exe('qbe', [[
	main.c util.c parse.c cfg.c mem.c ssa.c alias.c load.c copy.c
	fold.c live.c spill.c rega.c gas.c
	amd64/(targ.c sysv.c isel.c emit.c)
	arm64/(targ.c abi.c isel.c emit.c)
	rv64/(targ.c abi.c isel.c emit.c)
]])
file('bin/qbe', '755', '$outdir/qbe')

fetch 'git'