Skip to content

Commit 9530b0f

Browse files
committed
auto-create compile_commands.json
fix gitignore
1 parent 44d8bbc commit 9530b0f

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.gitignore

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/qemu_libafl_bridge/Cargo.lock
2-
/qemu_libafl_bridge/target/
31
/GNUmakefile
42
/build/
53
/.cache/
@@ -22,3 +20,8 @@ GTAGS
2220
*.swp
2321
*.patch
2422
*.gcov
23+
24+
# --- Begin LibAFL code ---
25+
/.idea
26+
/compile_commands.json
27+
# --- End LibAFL code ---

linker_interceptor.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ def fix_compile_commands():
4040
with open("compile_commands.json", 'w') as f:
4141
f.write(res)
4242

43+
os.symlink("build/compile_commands.json", "../compile_commands.json")
44+
4345
def process_args(args):
4446
global out_args, shareds, search, is_linking_qemu
4547
prev_o = False

0 commit comments

Comments
 (0)