File tree 2 files changed +12
-3
lines changed
2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ RUN apt-get update
9
9
10
10
RUN apt-get upgrade -y
11
11
12
- RUN apt-get install -y vim git wget python3 python-is-python3 pip gcc-arm-none-eabi scons libncurses5-dev
12
+ RUN apt-get install -y vim git wget python3 python-is-python3 pip gcc-arm-none-eabi libncurses5-dev
13
13
14
14
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y qemu-system-arm
15
15
@@ -34,7 +34,7 @@ RUN git clone https://github.com/RT-Thread/packages.git /root/.env/packages/pack
34
34
35
35
ENV PATH="/root/.env/tools/scripts:$PATH"
36
36
37
- RUN pip install requests psutil kconfiglib tqdm -qq
37
+ RUN pip install scons requests psutil kconfiglib tqdm -qq
38
38
39
39
ENV RTT_EXEC_PATH=/usr/bin
40
40
Original file line number Diff line number Diff line change @@ -108,8 +108,17 @@ def GenerateCFiles(env):
108
108
target_path_list = []
109
109
for path in path_list :
110
110
if path ['path' ] != '.' :
111
- path ['name' ] = 'rtthread/' + '/' .join ([p for p in path ['path' ].split ('\\ ' ) if p != '..' ])
111
+ normalized_path = path ['path' ].replace ('\\ ' , os .path .sep )
112
+ segments = [p for p in normalized_path .split (os .path .sep ) if p != '..' ]
113
+ path ['name' ] = 'rtthread/' + '/' .join (segments )
112
114
json_obj ['folders' ] = path_list
115
+ if os .path .exists ('compile_commands.json' ):
116
+ json_obj ['settings' ] = {
117
+ "clangd.arguments" : [
118
+ "--compile-commands-dir=." ,
119
+ "--header-insertion=never"
120
+ ]
121
+ }
113
122
vsc_space_file .write (json .dumps (json_obj , ensure_ascii = False , indent = 4 ))
114
123
vsc_space_file .close ()
115
124
return
You can’t perform that action at this time.
0 commit comments