File tree 2 files changed +8
-2
lines changed 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 1
1
; RUN: rm -rf %t
2
2
; RUN: split-file %s %t
3
3
; RUN: sed -e "s|DSTROOT|%/t|g" %t/inputs.json.in > %t/inputs.json
4
+ ; RUN: mkdir -p %t/modules.cache
4
5
5
6
; RUN: clang-installapi \
6
7
; RUN: -target arm64-apple-macos12 -install_name @rpath/libfoo.dylib \
7
8
; RUN: -current_version 1 -compatibility_version 1 \
8
9
; RUN: -Xproject -fmodules -I%t/usr/include \
10
+ ; RUN: -Xproject -fmodules-cache-path=%t/modules.cache \
9
11
; RUN: -F %S/Inputs/Foundation/ \
10
12
; RUN: -exclude-public-header %t/usr/include/public.h \
11
13
; RUN: -extra-project-header %t/project.h -I%t -dynamiclib \
17
19
; RUN: -target arm64-apple-macos12 -install_name @rpath/libfoo.dylib \
18
20
; RUN: -current_version 1 -compatibility_version 1 \
19
21
; RUN: -Xproject -fmodules -I%t/usr/include \
22
+ ; RUN: -Xproject -fmodules-cache-path=%t/modules.cache \
20
23
; RUN: -extra-project-header %t/project.h \
21
24
; RUN: -F %S/Inputs/Foundation/ \
22
25
; RUN: %t/inputs.json \
Original file line number Diff line number Diff line change @@ -299,8 +299,11 @@ bool Options::processXprojectOption(InputArgList &Args, arg_iterator Curr) {
299
299
return false ;
300
300
}
301
301
302
- ProjectLevelArgs.push_back (NextA->getSpelling ().str ());
303
- llvm::copy (NextA->getValues (), std::back_inserter (ProjectLevelArgs));
302
+ std::string ArgString = NextA->getSpelling ().str ();
303
+ for (const StringRef Val : NextA->getValues ())
304
+ ArgString += Val.str ();
305
+
306
+ ProjectLevelArgs.push_back (ArgString);
304
307
A->claim ();
305
308
NextA->claim ();
306
309
You can’t perform that action at this time.
0 commit comments