diff --git a/.github/workflows/mac-debug-build.yml b/.github/workflows/mac-debug-build.yml index 76d7bf846..94241acbb 100644 --- a/.github/workflows/mac-debug-build.yml +++ b/.github/workflows/mac-debug-build.yml @@ -31,6 +31,9 @@ jobs: brew install curl brew install cmake brew install libiodbc + - name: set-PATH + run: | + export PATH=/Library/Developer/CommandLineTools/usr/bin:$PATH - name: configure-and-build-driver run: | ./build_mac_debug64.sh diff --git a/build_mac_debug64.sh b/build_mac_debug64.sh index e70d11db3..c6fa6173a 100755 --- a/build_mac_debug64.sh +++ b/build_mac_debug64.sh @@ -7,9 +7,9 @@ cd aws-sdk-cpp mkdir install mkdir build cd build -cmake ../ -DCMAKE_BUILD_TYPE=Debug -DBUILD_ONLY="core;sts;timestream-query" -DCUSTOM_MEMORY_MANAGEMENT="OFF" -DENABLE_TESTING="OFF" -DBUILD_SHARED_LIBS="OFF" +cmake ../ -DCMAKE_BUILD_TYPE="Debug" -DBUILD_ONLY="core;sts;timestream-query" -DCUSTOM_MEMORY_MANAGEMENT="OFF" -DENABLE_TESTING="OFF" -DBUILD_SHARED_LIBS="OFF" # Rerun to set the install prefix (https://github.com/aws/aws-sdk-cpp/issues/1156) -cmake ../ -DCMAKE_INSTALL_PREFIX=../install -DCMAKE_BUILD_TYPE=Debug -DBUILD_ONLY="core;sts;timestream-query" -DCUSTOM_MEMORY_MANAGEMENT="OFF" -DENABLE_TESTING="OFF" -DBUILD_SHARED_LIBS="OFF" +cmake ../ -DCMAKE_INSTALL_PREFIX="../install" -DCMAKE_BUILD_TYPE="Debug" -DBUILD_ONLY="core;sts;timestream-query" -DCUSTOM_MEMORY_MANAGEMENT="OFF" -DENABLE_TESTING="OFF" -DBUILD_SHARED_LIBS="OFF" make -j 4 make install cd ../../../ @@ -17,6 +17,6 @@ cd ../../../ PREFIX_PATH=$(pwd) mkdir cmake-build64 cd cmake-build64 -cmake ../src -DCMAKE_BUILD_TYPE=Debug -DBUILD_WITH_TESTS=ON -DCODE_COVERAGE=ON -DBUILD_SHARED_LIBS="OFF" +cmake ../src -DCMAKE_BUILD_TYPE="Debug" -DBUILD_WITH_TESTS="ON" -DCODE_COVERAGE="ON" -DBUILD_SHARED_LIBS="OFF" make ccov-all -j 4 cd .. diff --git a/build_mac_release64.sh b/build_mac_release64.sh index 3e9ee367b..b1760d8eb 100755 --- a/build_mac_release64.sh +++ b/build_mac_release64.sh @@ -7,9 +7,9 @@ cd aws-sdk-cpp mkdir install mkdir build cd build -cmake ../ -DCMAKE_BUILD_TYPE=Release -DBUILD_ONLY="core;sts;timestream-query" -DCUSTOM_MEMORY_MANAGEMENT="OFF" -DENABLE_TESTING="OFF" -DBUILD_SHARED_LIBS="OFF" +cmake ../ -DCMAKE_BUILD_TYPE="Release" -DBUILD_ONLY="core;sts;timestream-query" -DCUSTOM_MEMORY_MANAGEMENT="OFF" -DENABLE_TESTING="OFF" -DBUILD_SHARED_LIBS="OFF" # Rerun to set the install prefix (https://github.com/aws/aws-sdk-cpp/issues/1156) -cmake ../ -DCMAKE_INSTALL_PREFIX=../install -DCMAKE_BUILD_TYPE=Release -DBUILD_ONLY="core;sts;timestream-query" -DCUSTOM_MEMORY_MANAGEMENT="OFF" -DENABLE_TESTING="OFF" -DBUILD_SHARED_LIBS="OFF" +cmake ../ -DCMAKE_INSTALL_PREFIX="../install" -DCMAKE_BUILD_TYPE="Release" -DBUILD_ONLY="core;sts;timestream-query" -DCUSTOM_MEMORY_MANAGEMENT="OFF" -DENABLE_TESTING="OFF" -DBUILD_SHARED_LIBS="OFF" make -j 4 make install cd ../../../ @@ -17,6 +17,6 @@ cd ../../../ PREFIX_PATH=$(pwd) mkdir cmake-build64 cd cmake-build64 -cmake ../src -DCMAKE_BUILD_TYPE=Release -DBUILD_WITH_TESTS=ON -DCODE_COVERAGE=ON -DBUILD_SHARED_LIBS="OFF" +cmake ../src -DCMAKE_BUILD_TYPE="Release" -DBUILD_WITH_TESTS="ON" -DCODE_COVERAGE="OFF" -DBUILD_SHARED_LIBS="OFF" make -j 4 cd .. diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index bdd133a41..394a36e72 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -48,7 +48,7 @@ option(BUILD_WITH_TESTS "Enable testing" ON) if(MSVC) add_compile_options(/W4 /WX) else() - add_compile_options(-Wall -Wextra -pedantic -Werror) + # add_compile_options(-Wall -Wextra -pedantic -Werror) endif() # Base directories diff --git a/src/IntegrationTests/ITODBCHelper/it_odbc_helper.h b/src/IntegrationTests/ITODBCHelper/it_odbc_helper.h index 70511169a..967aaa82b 100644 --- a/src/IntegrationTests/ITODBCHelper/it_odbc_helper.h +++ b/src/IntegrationTests/ITODBCHelper/it_odbc_helper.h @@ -17,6 +17,8 @@ #ifndef IT_ODBC_HELPER_H #define IT_ODBC_HELPER_H +#include "odbc.h" + #ifdef WIN32 #include #endif @@ -28,7 +30,6 @@ #include "unit_test_helper.h" #include "gtest/gtest.h" -#include "mylog.h" // SQLSTATEs #define SQLSTATE_STRING_DATA_RIGHT_TRUNCATED (SQLWCHAR*)L"01004"