summaryrefslogtreecommitdiff
path: root/gccd
diff options
context:
space:
mode:
authorlittleblack111 <jerrylam110209@gmail.com>2023-03-08 18:09:07 +0800
committerlittleblack111 <jerrylam110209@gmail.com>2023-03-08 18:09:07 +0800
commit46ba941d0e3df93c243429551bd5101b0c1c172e (patch)
treee7c185a0f749248983340246ad71f6a30edeb2c7 /gccd
update
Diffstat (limited to 'gccd')
-rwxr-xr-xgccd7
1 files changed, 7 insertions, 0 deletions
diff --git a/gccd b/gccd
new file mode 100755
index 0000000..ddac492
--- /dev/null
+++ b/gccd
@@ -0,0 +1,7 @@
+#!/usr/bin/env bash
+if [ -n "${2+x}" ]; then
+ gcc -Wall -Wextra -std=c11 -g -c $1 -o $2
+else
+ gcc -Wall -Wextra -std=c11 -g -c $1 -o ${1%.*}.o
+fi
+