File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -357,7 +357,7 @@ Driver::buildToolChain(const llvm::opt::InputArgList &ArgList) {
357
357
return std::make_unique<toolchains::Android>(*this , target);
358
358
return std::make_unique<toolchains::GenericUnix>(*this , target);
359
359
case llvm::Triple::FreeBSD:
360
- return std::make_unique<toolchains::GenericUnix >(*this , target);
360
+ return std::make_unique<toolchains::FreeBSD >(*this , target);
361
361
case llvm::Triple::OpenBSD:
362
362
return std::make_unique<toolchains::OpenBSD>(*this , target);
363
363
case llvm::Triple::Win32:
Original file line number Diff line number Diff line change @@ -194,6 +194,16 @@ class LLVM_LIBRARY_VISIBILITY OpenBSD : public GenericUnix {
194
194
~OpenBSD () = default ;
195
195
};
196
196
197
+ class LLVM_LIBRARY_VISIBILITY FreeBSD : public GenericUnix {
198
+ protected:
199
+ std::string getDefaultLinker () const override ;
200
+
201
+ public:
202
+ FreeBSD (const Driver &D, const llvm::Triple &Triple)
203
+ : GenericUnix(D, Triple) {}
204
+ ~FreeBSD () = default ;
205
+ };
206
+
197
207
} // end namespace toolchains
198
208
} // end namespace driver
199
209
} // end namespace swift
Original file line number Diff line number Diff line change @@ -429,3 +429,7 @@ std::string toolchains::Cygwin::getDefaultLinker() const {
429
429
std::string toolchains::OpenBSD::getDefaultLinker () const {
430
430
return " lld" ;
431
431
}
432
+
433
+ std::string toolchains::FreeBSD::getDefaultLinker () const {
434
+ return " lld" ;
435
+ }
You can’t perform that action at this time.
0 commit comments