diff options
| author | Lieuwe <lieuwemo@gmail.com> | 2011-03-18 18:02:09 (GMT) |
|---|---|---|
| committer | Lieuwe <lieuwemo@gmail.com> | 2011-03-18 18:02:09 (GMT) |
| commit | 96959503cd094e09c2d26f298d79cfde34b58491 (patch) | |
| tree | 2c206db91279d6767ecb98107ba60f2dc60142c3 /syntaxcheck.py | |
| parent | 8b22ca5064d2ea90b1b55d855a8a9b3809fd4137 (diff) | |
| download | powder-96959503cd094e09c2d26f298d79cfde34b58491.zip powder-96959503cd094e09c2d26f298d79cfde34b58491.tar.gz | |
now warns about a disabled python console.
Diffstat (limited to 'syntaxcheck.py')
| -rw-r--r-- | syntaxcheck.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/syntaxcheck.py b/syntaxcheck.py deleted file mode 100644 index 32335f1..0000000 --- a/syntaxcheck.py +++ /dev/null @@ -1,18 +0,0 @@ -import sys -import subprocess -if len(sys.argv)<2: - print("usage: syntaxcheck.py <filename>") - raise SystemExit - -fname=sys.argv[1] -cppargs=["-E"]+sys.argv[2:] - -p=subprocess.Popen(["gcc",fname]+cppargs,stdin=subprocess.PIPE,stdout=subprocess.PIPE,stderr=subprocess.PIPE) -ret=p.communicate() -if len(ret[1])>0: - print("errors hapened!") - print(repr(ret[1].decode())) - raise SystemExit(-1) - -print(len(ret[0].decode())) -#python syntaxcheck.py ./src/main.c -DINTERNAL -opowder -w -std=c99 -D_POSIX_C_SOURCE=200112L -Iincludes/ -O3 -ffast-math -ftree-vectorize -funsafe-math-optimizations -lSDL -lm -lbz2 -lpython2.7 -lm -L/usr/lib/python2.7/config -I/usr/include/python2.7 -march=native -DX86 -DX86_SSE3 -msse3 src/*.c src/elements/*.c -DLIN64
\ No newline at end of file |
