提交 a4f39507 编写于 作者: A Asim RP 提交者: GitHub

Ensure that codegen unittests pass with GCC 6.2.0 (#1177)

Update the CMakeLists.txt to include all the required libraries to make
codegen unittests pass.

Update the gpAux makefile.global to use the absolute gcc path.
上级 2098fe19
......@@ -34,7 +34,7 @@ export MPP_ARCH=$($(BLD_ARCH)_MPP_ARCH)
endif
# take over the gcc version we use
BLD_CC=gcc
BLD_CC=$(shell which gcc)
hpux_ia64_CC=gcc
osx106_x86_CC=gcc
......
......@@ -313,7 +313,7 @@ function(add_cmockery_gtest TEST_NAME TEST_SOURCES)
)
target_include_directories(${TEST_NAME} PUBLIC ${TEST_LIB_INC_DIRECTORIES})
# Bring these from $ENV{LIBS}
target_link_libraries(${TEST_NAME} "-ldl -lbz2 -lxml2 -lz -lm -lcurl -L../../port -lpgport_srv" gpcodegen gtest)
target_link_libraries(${TEST_NAME} "-lnetsnmp -lpam -lxml2 -lpgport -lbz2 -lrt -lz -lreadline -lcrypt -ldl -lm -lcurl -L../../port -lpgport_srv" gpcodegen gtest)
add_test(${TEST_NAME} ${TEST_NAME})
add_dependencies(check ${TEST_NAME})
endfunction(add_cmockery_gtest)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册