Fix defines in workflow files to enable compilation of tests and samples in CI. (#1595)

This commit is contained in:
Andreas Süßenbach
2023-06-20 14:43:35 +02:00
committed by GitHub
parent 9f89f760a6
commit 397ffad84a
11 changed files with 105 additions and 110 deletions

View File

@@ -31,7 +31,7 @@
int main( int /*argc*/, char ** /*argv*/ )
{
#if ( 201907 <= __cpp_constexpr ) && ( !defined( __GNUC__ ) || ( 110300 < GCC_VERSION ) )
#if ( 201907 <= __cpp_constexpr ) && ( !defined( __GNUC__ ) || ( 110400 < GCC_VERSION ) )
static_assert( vk::isInstanceExtension( VK_KHR_SURFACE_EXTENSION_NAME ), "static_assert test failed" );
static_assert( vk::isDeviceExtension( VK_KHR_SWAPCHAIN_EXTENSION_NAME ), "static assert test failed" );
static_assert( vk::isDeprecatedExtension( VK_EXT_DEBUG_REPORT_EXTENSION_NAME ), "static assert test failed" );

View File

@@ -12,11 +12,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
vulkan_hpp__setup_library(
NAME UniqueHandleDefaultArguments
SOURCES UniqueHandleDefaultArguments.cpp
FOLDER "Tests" )
if( UNIX )
target_link_libraries( UniqueHandleDefaultArguments PRIVATE ${CMAKE_DL_LIBS} )
endif()
vulkan_hpp__setup_test( NAME UniqueHandleDefaultArguments )

View File

@@ -23,9 +23,10 @@ VULKAN_HPP_DEFAULT_DISPATCH_LOADER_DYNAMIC_STORAGE
#if defined( __x86_64__ ) || defined( _M_X64 )
// On 32-bit systems the test is ambiguous.
void test()
int main( int /*argc*/, char ** /*argv*/ )
{
VkSurfaceKHR surface = 0;
auto uniqueSurface = vk::UniqueSurfaceKHR( surface, vk::Instance() );
return 0;
}
#endif