Commit ac250b9b authored by Frank Tang's avatar Frank Tang Committed by Commit Bot

[Intl] Add static_assert of icu version >= 63

Bug: v8:8424
Change-Id: Ic4f5b229dca4c3a802701aaa6e2093e280739a78
Reviewed-on: https://chromium-review.googlesource.com/c/1328646Reviewed-by: 's avatarSathya Gunasekaran <gsathya@chromium.org>
Reviewed-by: 's avatarYang Guo <yangguo@chromium.org>
Commit-Queue: Frank Tang <ftang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#57444}
parent d966a42e
......@@ -34,6 +34,15 @@
#include "unicode/numsys.h"
#include "unicode/timezone.h"
#include "unicode/ustring.h"
#include "unicode/uvernum.h" // U_ICU_VERSION_MAJOR_NUM
#define XSTR(s) STR(s)
#define STR(s) #s
static_assert(
V8_MINIMUM_ICU_VERSION <= U_ICU_VERSION_MAJOR_NUM,
"v8 is required to build with ICU " XSTR(V8_MINIMUM_ICU_VERSION) " and up");
#undef STR
#undef XSTR
namespace v8 {
namespace internal {
......
......@@ -20,6 +20,8 @@
#include "unicode/locid.h"
#include "unicode/uversion.h"
#define V8_MINIMUM_ICU_VERSION 63
namespace U_ICU_NAMESPACE {
class BreakIterator;
class DecimalFormat;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment