ALLOCATOR's argument verification (temporary solution)
@@ -1680,6 +1680,12 @@ macro USE_PERL_LIB() {
### More about the allocator in Arcadia: https://wiki.yandex-team.ru/arcadia/allocators/
macro ALLOCATOR(Alloc) {
SET(ALLOCATOR $Alloc)
+
+ when ($ALLOCATOR in [ "LF", "LF_YT", "LF_DBG", "J", "B", "BS", "C", "GOOGLE", "LOCKLESS", "SYSTEM", "FAKE" ]) {
+ }
+ otherwise {
+ PEERDIR+=___configure_error___unknown_allocator_type___$ALLOCATOR
+ }
}
macro ADD_PERL_MODULE(Dir, Module) {
