6
[SOLVED] How to make ALE aware of compiler flags?
(latte.isnot.coffee)
The following section of ALE’s wiki page might be helpful:
I saw that but where do I put compile_commands.json
? It isn't working
my compile_commands.json for reference:
[
{ "directory": "/home/user/watch",
"command": "/usr/bin/gcc $( pkg-config --cflags gtk4 ) -o program main.c $( pkg-config --libs gtk4 )",
"file": "main.c" }
]
Seems like you solved it with the Makefile option but it is odd that compile_commands.json
is not parsed (I can confirm this on my machine). Anyway thanks for providing a solution :)
VIM - Vi Improved, text editor community
Please use English.