mirror of
https://github.com/danog/gllvm.git
synced 2024-11-30 06:08:58 +01:00
Added the compile and link flag '-fsanitize=' to solve issue #19
This commit is contained in:
parent
a91293a16f
commit
da2306f5bc
20
examples/issue19/Makefile
Normal file
20
examples/issue19/Makefile
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
one:
|
||||||
|
${CC} test.c -fsanitize=address -o test
|
||||||
|
|
||||||
|
|
||||||
|
test.o:
|
||||||
|
${CC} -c test.c -fsanitize=address
|
||||||
|
|
||||||
|
|
||||||
|
test: test.o
|
||||||
|
${CC} test.o -fsanitize=address -o test
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f test.o test .test* *~
|
||||||
|
|
4
examples/issue19/test.c
Normal file
4
examples/issue19/test.c
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
int main(void) {
|
||||||
|
printf("test\n");
|
||||||
|
}
|
@ -263,6 +263,7 @@ func parse(argList []string) parserResult {
|
|||||||
`^-U.+$`: {0, pr.compileUnaryCallback},
|
`^-U.+$`: {0, pr.compileUnaryCallback},
|
||||||
`^-Wl,.+$`: {0, pr.linkUnaryCallback},
|
`^-Wl,.+$`: {0, pr.linkUnaryCallback},
|
||||||
`^-W[^l].*$`: {0, pr.compileUnaryCallback},
|
`^-W[^l].*$`: {0, pr.compileUnaryCallback},
|
||||||
|
`^-fsanitize=.+$`: {0, pr.compileLinkUnaryCallback},
|
||||||
`^-f.+$`: {0, pr.compileUnaryCallback},
|
`^-f.+$`: {0, pr.compileUnaryCallback},
|
||||||
`^-rtlib=.+$`: {0, pr.linkUnaryCallback},
|
`^-rtlib=.+$`: {0, pr.linkUnaryCallback},
|
||||||
`^-std=.+$`: {0, pr.compileUnaryCallback},
|
`^-std=.+$`: {0, pr.compileUnaryCallback},
|
||||||
|
Loading…
Reference in New Issue
Block a user