Fix defines in workflow files to enable compilation of tests and samples in CI. (#1595)
This commit is contained in:
committed by
GitHub
parent
9f89f760a6
commit
397ffad84a
@@ -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" );
|
||||
|
||||
@@ -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 )
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user