1# Place your compiler tests that assure that the build is behaving as expected across 2# various platforms here. 3# 4# For example: bit fields behave differently accross windows/posix. 5# Tests here will make sure that if we change compilers again that we catch failures early. 6android_add_test( 7 TARGET win_clang_unittests 8 SRC # cmake-format: sortable 9 compiler_tests.cpp enum_bit_fields.c longjump_test.c) 10 11# the longjump errors manifest with -O2 12set_source_files_properties(longjump_test.c PRIVATE COMPILE_FLAGS "-O2") 13target_include_directories( 14 win_clang_unittests 15 PRIVATE ${ANDROID_QEMU2_TOP_DIR}/android-qemu2-glue/config/target-x86_64 16 ${ANDROID_QEMU2_TOP_DIR}/target/i386 17 ${ANDROID_AUTOGEN} 18 ${ANDROID_AUTOGEN}/tcg) 19 20target_link_libraries(win_clang_unittests PRIVATE android-qemu-deps gmock_main 21 glib2) 22target_compile_definitions(win_clang_unittests PRIVATE -DNEED_CPU_H) 23