Add build scripts and main.c
This commit is contained in:
parent
e2ebc9139b
commit
7e7d75ead0
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
main
|
9
compile
Executable file
9
compile
Executable file
@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
CC=clang
|
||||||
|
CFLAGS="-g -Wall"
|
||||||
|
CXXFLAGS="-g -Wall"
|
||||||
|
SRC="src/*.c"
|
||||||
|
OUT=main
|
||||||
|
|
||||||
|
(set -x ; $CC $CFLAGS $SRC -o $OUT)
|
83
compile_commands.json
Normal file
83
compile_commands.json
Normal file
@ -0,0 +1,83 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"arguments": [
|
||||||
|
"/usr/bin/clang",
|
||||||
|
"-c",
|
||||||
|
"-g",
|
||||||
|
"-Wall",
|
||||||
|
"-o",
|
||||||
|
"main",
|
||||||
|
"src/main.c"
|
||||||
|
],
|
||||||
|
"directory": "/home/abdelrahman/Sources/programming/event-system",
|
||||||
|
"file": "/home/abdelrahman/Sources/programming/event-system/src/main.c",
|
||||||
|
"output": "/home/abdelrahman/Sources/programming/event-system/main"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"arguments": [
|
||||||
|
"/usr/bin/clang-18",
|
||||||
|
"-cc1",
|
||||||
|
"-triple",
|
||||||
|
"x86_64-pc-linux-gnu",
|
||||||
|
"-emit-obj",
|
||||||
|
"-mrelax-all",
|
||||||
|
"-dumpdir",
|
||||||
|
"main-",
|
||||||
|
"-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",
|
||||||
|
"-debug-info-kind=constructor",
|
||||||
|
"-dwarf-version=5",
|
||||||
|
"-debugger-tuning=gdb",
|
||||||
|
"-fdebug-compilation-dir=/home/abdelrahman/Sources/programming/event-system",
|
||||||
|
"-fcoverage-compilation-dir=/home/abdelrahman/Sources/programming/event-system",
|
||||||
|
"-resource-dir",
|
||||||
|
"/usr/lib/clang/18",
|
||||||
|
"-internal-isystem",
|
||||||
|
"/usr/lib/clang/18/include",
|
||||||
|
"-internal-isystem",
|
||||||
|
"/usr/local/include",
|
||||||
|
"-internal-isystem",
|
||||||
|
"/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/14.2.1/../../../../x86_64-pc-linux-gnu/include",
|
||||||
|
"-internal-externc-isystem",
|
||||||
|
"/include",
|
||||||
|
"-internal-externc-isystem",
|
||||||
|
"/usr/include",
|
||||||
|
"-Wall",
|
||||||
|
"-ferror-limit",
|
||||||
|
"19",
|
||||||
|
"-stack-protector",
|
||||||
|
"2",
|
||||||
|
"-fgnuc-version=4.2.1",
|
||||||
|
"-fskip-odr-check-in-gmf",
|
||||||
|
"-fcolor-diagnostics",
|
||||||
|
"-faddrsig",
|
||||||
|
"-D__GCC_HAVE_DWARF2_CFI_ASM=1",
|
||||||
|
"-x",
|
||||||
|
"c",
|
||||||
|
"-o",
|
||||||
|
"/tmp/main-74e9ff.o",
|
||||||
|
"src/main.c"
|
||||||
|
],
|
||||||
|
"directory": "/home/abdelrahman/Sources/programming/event-system",
|
||||||
|
"file": "/home/abdelrahman/Sources/programming/event-system/src/main.c",
|
||||||
|
"output": "/tmp/main-74e9ff.o"
|
||||||
|
}
|
||||||
|
]
|
3
src/main.c
Normal file
3
src/main.c
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
int main(void) {
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user