File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed
llvm/utils/gn/secondary/compiler-rt/lib/hwasan Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,13 @@ source_set("cxx_sources") {
88
88
sources = [ " hwasan_new_delete.cpp" ]
89
89
}
90
90
91
+ source_set (" preinit_sources" ) {
92
+ configs -= [ " //llvm/utils/gn/build:llvm_code" ]
93
+ configs += [ " //llvm/utils/gn/build:crt_code" ]
94
+ defines = [ " HWASAN_WITH_INTERCEPTORS=1" ]
95
+ sources = [ " hwasan_preinit.cpp" ]
96
+ }
97
+
91
98
static_library (" hwasan_static" ) {
92
99
output_dir = crt_current_out_dir
93
100
output_name = " clang_rt.$hwasan_name$crt_current_target_suffix "
@@ -97,7 +104,10 @@ static_library("hwasan_static") {
97
104
" //llvm/utils/gn/build:thin_archive" ,
98
105
]
99
106
configs += [ " //llvm/utils/gn/build:crt_code" ]
100
- deps = [ " :sources" ]
107
+ deps = [
108
+ " :preinit_sources" ,
109
+ " :sources" ,
110
+ ]
101
111
}
102
112
103
113
static_library (" hwasan_cxx" ) {
@@ -138,15 +148,15 @@ static_library("hwasan_preinit") {
138
148
" //llvm/utils/gn/build:thin_archive" ,
139
149
]
140
150
configs += [ " //llvm/utils/gn/build:crt_code" ]
141
- sources = [ " hwasan_preinit.cpp " ]
151
+ deps = [ " :preinit_sources " ]
142
152
}
143
153
144
154
group (" hwasan" ) {
145
155
deps = [
156
+ " :hwasan_cxx" ,
146
157
" :hwasan_preinit" ,
147
158
" :hwasan_shared" ,
148
159
" :hwasan_static" ,
149
- " :hwasan_cxx" ,
150
160
" :version_script" ,
151
161
]
152
162
}
You can’t perform that action at this time.
0 commit comments