We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa2d07e commit 0108cfbCopy full SHA for 0108cfb
bsp/qemu-virt64-riscv/SConstruct
@@ -11,13 +11,17 @@ TARGET = 'rtthread.' + rtconfig.TARGET_EXT
11
12
DefaultEnvironment(tools=[])
13
env = Environment(tools = ['mingw'],
14
+ COMPILATIONDB_USE_ABSPATH = True,
15
AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS,
16
CC = rtconfig.CC, CCFLAGS = rtconfig.CFLAGS,
17
CXX = rtconfig.CXX, CXXFLAGS = rtconfig.CXXFLAGS,
18
AR = rtconfig.AR, ARFLAGS = '-rc',
19
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
20
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
21
env['ASCOM'] = env['ASPPCOM']
22
+env.Tool('compilation_db')
23
+cdb = env.CompilationDatabase('compile_commands.json')
24
+Alias('cdb', cdb)
25
26
Export('RTT_ROOT')
27
Export('rtconfig')
0 commit comments