Setup build process
This commit is contained in:
parent
290b5e52fc
commit
539f8ed200
9
compile
Executable file
9
compile
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
CC=clang
|
||||
CFLAGS="-g -Wall -Werror -pedantic"
|
||||
LIBS="-lSDL2"
|
||||
SRC="main.c"
|
||||
OUT="main"
|
||||
|
||||
(set -x ; $CC $CFLAGS $LIBS $SRC -o $OUT)
|
87
compile_commands.json
Normal file
87
compile_commands.json
Normal file
@ -0,0 +1,87 @@
|
||||
[
|
||||
{
|
||||
"arguments": [
|
||||
"/usr/bin/clang",
|
||||
"-c",
|
||||
"-g",
|
||||
"-Wall",
|
||||
"-Werror",
|
||||
"-pedantic",
|
||||
"-o",
|
||||
"main",
|
||||
"main.c"
|
||||
],
|
||||
"directory": "/home/abdelrahman/Sources/programming/starfield",
|
||||
"file": "/home/abdelrahman/Sources/programming/starfield/main.c",
|
||||
"output": "/home/abdelrahman/Sources/programming/starfield/main"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
"/usr/bin/clang-15",
|
||||
"-cc1",
|
||||
"-triple",
|
||||
"x86_64-pc-linux-gnu",
|
||||
"-emit-obj",
|
||||
"-mrelax-all",
|
||||
"--mrelax-relocations",
|
||||
"-disable-free",
|
||||
"-clear-ast-before-backend",
|
||||
"-disable-llvm-verifier",
|
||||
"-discard-value-names",
|
||||
"-main-file-name",
|
||||
"-mrelocation-model",
|
||||
"pic",
|
||||
"-pic-level",
|
||||
"2",
|
||||
"-pic-is-pie",
|
||||
"-mframe-pointer=all",
|
||||
"-fmath-errno",
|
||||
"-ffp-contract=on",
|
||||
"-fno-rounding-math",
|
||||
"-mconstructor-aliases",
|
||||
"-funwind-tables=2",
|
||||
"-target-cpu",
|
||||
"x86-64",
|
||||
"-tune-cpu",
|
||||
"generic",
|
||||
"-mllvm",
|
||||
"-treat-scalable-fixed-error-as-warning",
|
||||
"-debug-info-kind=constructor",
|
||||
"-dwarf-version=5",
|
||||
"-debugger-tuning=gdb",
|
||||
"-fcoverage-compilation-dir=/home/abdelrahman/Sources/programming/starfield",
|
||||
"-resource-dir",
|
||||
"/usr/lib/clang/15.0.7",
|
||||
"-internal-isystem",
|
||||
"/usr/lib/clang/15.0.7/include",
|
||||
"-internal-isystem",
|
||||
"/usr/local/include",
|
||||
"-internal-isystem",
|
||||
"/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../x86_64-pc-linux-gnu/include",
|
||||
"-internal-externc-isystem",
|
||||
"/include",
|
||||
"-internal-externc-isystem",
|
||||
"/usr/include",
|
||||
"-Wall",
|
||||
"-Werror",
|
||||
"-pedantic",
|
||||
"-fdebug-compilation-dir=/home/abdelrahman/Sources/programming/starfield",
|
||||
"-ferror-limit",
|
||||
"19",
|
||||
"-stack-protector",
|
||||
"2",
|
||||
"-fgnuc-version=4.2.1",
|
||||
"-fcolor-diagnostics",
|
||||
"-faddrsig",
|
||||
"-D__GCC_HAVE_DWARF2_CFI_ASM=1",
|
||||
"-x",
|
||||
"c",
|
||||
"-o",
|
||||
"/tmp/main-b9c948.o",
|
||||
"main.c"
|
||||
],
|
||||
"directory": "/home/abdelrahman/Sources/programming/starfield",
|
||||
"file": "/home/abdelrahman/Sources/programming/starfield/main.c",
|
||||
"output": "/tmp/main-b9c948.o"
|
||||
}
|
||||
]
|
Loading…
Reference in New Issue
Block a user