Fix empty compile_commands.json

This commit re-enables the keep_last_cmd member variable in the TaskBase class
(which was disabled by default in Waf 2.0.9) when clang_compilation_database.py
is used. The clang_compilation_database.py file was correctly updated in the
relevant Waf commit introducing the change [1], but is missing in ns-3's bundled
version of Waf.

[1] 7778868718
This commit is contained in:
Davide Magrin
2018-12-20 14:39:39 +01:00
parent 1512928b85
commit b08b3de670

View File

@@ -15,9 +15,11 @@ Usage:
"""
import sys, os, json, shlex, pipes
from waflib import Logs, TaskGen
from waflib import Logs, TaskGen, Task
from waflib.Tools import c, cxx
Task.TaskBase.keep_last_cmd = True
if sys.hexversion >= 0x3030000:
quote = shlex.quote
else: