From 5782232e033cf5939f37b8421492f4eca35ffbce Mon Sep 17 00:00:00 2001 From: zakarouf Date: Sat, 6 Mar 2021 21:30:22 +0530 Subject: [PATCH] updated C builder --- cbuilder.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/cbuilder.py b/cbuilder.py index 5043c4b..103ab89 100755 --- a/cbuilder.py +++ b/cbuilder.py @@ -42,10 +42,8 @@ def compile(cfiles): cf = cfiles.split(" ") - run_command = [ CC ] + CFLAGS + LDFLAGS + run_command = [ CC ] + CFLAGS + LDFLAGS + cf - for i in cf: - run_command.append(i) run_command.append('-o') run_command.append(OUTEXE) @@ -136,12 +134,12 @@ def argp(arg): if i[0] == '-': if i[1:] == "-clean" or i[1:] == 'c': cleanEnabled= 1 - elif i[1:] == "-build" or i[1:] == 'b': + elif i[1:] == "-source" or i[1:] == 's': gSourceCode = arg[count+1] elif i[1:] == "-testdisable" or i[1:] == 't': testEnabled = 0 elif i[1:] == "-testCommands" or i[1:] == 'm': - testCommands = arg[count+1::] + gTestCommands = arg[count+1::] main(gSourceCode, cleanEnabled, gTestCommands) return else: