Files

21 lines
611 B
C++
Raw Permalink Normal View History

2024-05-27 19:57:39 -07:00
--- src/Target.cpp.orig 2024-02-20 17:13:06 UTC
+++ src/Target.cpp
2024-05-27 19:57:39 -07:00
@@ -148,6 +148,9 @@ Target calculate_host_target() {
#ifdef __linux__
os = Target::Linux;
#endif
+#ifdef __FreeBSD__
+ os = Target::FreeBSD;
+#endif
#ifdef _WIN32
os = Target::Windows;
#endif
2024-05-27 19:57:39 -07:00
@@ -399,6 +402,7 @@ const std::map<std::string, Target::OS> os_name_map =
const std::map<std::string, Target::OS> os_name_map = {
{"os_unknown", Target::OSUnknown},
{"linux", Target::Linux},
+ {"freebsd", Target::FreeBSD},
{"windows", Target::Windows},
{"osx", Target::OSX},
{"android", Target::Android},