Skip to content

Commit

Permalink
No sai api version check if vendor sai does not support (sonic-net#1063)
Browse files Browse the repository at this point in the history
Fix sonic-net#1062

Signed-off-by: Guohan Lu <[email protected]>
  • Loading branch information
lguohan authored Jun 11, 2022
1 parent 3964cf1 commit cdf9427
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ AM_COND_IF([SYNCD], [
AM_COND_IF([SAIVS], [], [
SAVED_FLAGS="$CXXFLAGS"
CXXFLAGS="-lsai -I$srcdir/SAI/inc -I$srcdir/SAI/experimental -I$srcdir/SAI/meta"
AC_CHECK_FUNC(sai_query_api_version, [
AC_MSG_CHECKING([SAI headers API version and library version check])
AC_TRY_RUN([
extern "C" {
Expand All @@ -201,7 +202,7 @@ int main() {
}],
[AC_MSG_RESULT(ok)],
[AC_MSG_RESULT(failed)
AC_MSG_ERROR("SAI headers API version and library version mismatch")])
AC_MSG_ERROR("SAI headers API version and library version mismatch")])])
CXXFLAGS="$SAVED_FLAGS"
])])

Expand Down

0 comments on commit cdf9427

Please sign in to comment.