Skip to content

Commit 52c7674

Browse files
committed
修复components/lwp/vdso/SConscript依赖CPP和CPPFLAGS的问题
1 parent 7f0131c commit 52c7674

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

components/lwp/vdso/SConscript

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@ list = os.listdir(cwd)
2121
src = Glob('kernel/*.c')
2222
src +=Glob('kernel/*.S')
2323

24+
25+
26+
PREFIX = os.getenv('RTT_CC_PREFIX')
27+
CPP = PREFIX + 'cpp'
28+
CPPFLAGS= ' -E -P -x assembler-with-cpp'
29+
rtconfig.CPP = CPP
30+
rtconfig.CPPFLAGS = CPPFLAGS
31+
2432
if not os.path.exists(cwd + "/user" + "/arch" +"/" + rtconfig.ARCH + "/vdso.lds"):
2533
Preprocessing("user/arch/" + rtconfig.ARCH + "/vdso.lds.S", ".lds", CPPPATH=[cwd])
2634

0 commit comments

Comments
 (0)