mirror of
https://github.com/NixOS/nix
synced 2025-07-12 06:35:08 +02:00
Revert "Merge pull request #11804 from obsidiansystems/remove-old-make"
This reverts commit619eeb658a
, reversing changes made to1af94bf471
.
This commit is contained in:
parent
3ab8534b13
commit
67d231c046
134 changed files with 4722 additions and 75 deletions
11
mk/compilation-database.mk
Normal file
11
mk/compilation-database.mk
Normal file
|
@ -0,0 +1,11 @@
|
|||
compile-commands-json-files :=
|
||||
|
||||
define write-compile-commands
|
||||
_srcs := $$(sort $$(foreach src, $$($(1)_SOURCES), $$(src)))
|
||||
|
||||
$(1)_COMPILE_COMMANDS_JSON := $$(addprefix $(buildprefix), $$(addsuffix .compile_commands.json, $$(basename $$(_srcs))))
|
||||
|
||||
compile-commands-json-files += $$($(1)_COMPILE_COMMANDS_JSON)
|
||||
|
||||
clean-files += $$($(1)_COMPILE_COMMANDS_JSON)
|
||||
endef
|
Loading…
Add table
Add a link
Reference in a new issue