Skip to content

Commit

Permalink
Use NO_BUILD_IF instead of empty library (relates YQL-17642), take II (
Browse files Browse the repository at this point in the history
  • Loading branch information
dichlofos authored Apr 10, 2024
1 parent 3eb317d commit 46f5e9c
Showing 1 changed file with 21 additions and 19 deletions.
40 changes: 21 additions & 19 deletions ydb/library/yql/udfs/common/hyperscan/ya.make
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,33 @@ IF (YQL_PACKAGED)

END()
ELSE()
IF (OS_LINUX AND CLANG)

YQL_UDF_YDB(hyperscan_udf)
# NO_BUILD_IF does not like logical expressions by now
# see DEVTOOLSSUPPORT-44378
IF (NOT OS_LINUX OR NOT CLANG)
SET(DISABLE_HYPERSCAN_BUILD)
ENDIF()

YQL_ABI_VERSION(
2
27
0
)
NO_BUILD_IF(DISABLE_HYPERSCAN_BUILD)

SRCS(
hyperscan_udf.cpp
)
YQL_UDF_YDB(hyperscan_udf)

PEERDIR(
library/cpp/regex/hyperscan
library/cpp/regex/pcre
)
YQL_ABI_VERSION(
2
27
0
)

END()
SRCS(
hyperscan_udf.cpp
)

ELSE()
LIBRARY()
END()
ENDIF()
PEERDIR(
library/cpp/regex/hyperscan
library/cpp/regex/pcre
)

END()

ENDIF()

Expand Down

0 comments on commit 46f5e9c

Please sign in to comment.