Index: BUILD.gn |
diff --git a/BUILD.gn b/BUILD.gn |
index fc0ea8eb6802bfb5e4a94a353d87141128e67f4a..6b102f37a102c1a03734a186106032d001ea4ce7 100644 |
--- a/BUILD.gn |
+++ b/BUILD.gn |
@@ -1398,17 +1398,15 @@ source_set("v8_libbase") { |
} else if (is_android) { |
defines += [ "CAN_USE_VFP_INSTRUCTIONS" ] |
- if (host_os == "mac") { |
- if (current_toolchain == host_toolchain) { |
+ if (current_toolchain == host_toolchain) { |
+ libs = [ "dl", "rt" ] |
+ if (host_os == "mac") { |
sources += [ "src/base/platform/platform-macos.cc" ] |
} else { |
sources += [ "src/base/platform/platform-linux.cc" ] |
} |
} else { |
sources += [ "src/base/platform/platform-linux.cc" ] |
- if (current_toolchain == host_toolchain) { |
- defines += [ "V8_LIBRT_NOT_AVAILABLE" ] |
- } |
} |
} else if (is_mac) { |
sources += [ "src/base/platform/platform-macos.cc" ] |