We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26d561f commit 9dcd245Copy full SHA for 9dcd245
arch/mips/CMakeLists.txt
@@ -47,5 +47,21 @@ if(BN_INTERNAL_BUILD)
47
RUNTIME_OUTPUT_DIRECTORY ${BN_CORE_PLUGIN_DIR})
48
endif()
49
50
-add_executable(mipstest mips/mips.c mips/test.c)
51
-target_link_libraries(mipstest PRIVATE arch_mips)
+if (DEFINED FORCE_TEST)
+
52
+ if (NOT ${CMAKE_SYSTEM_NAME} MATCHES "Windows")
53
+ add_executable(mipstest mips/mips.c mips/test.c)
54
55
+ target_compile_definitions(mipstest PRIVATE FORCE_TEST=1)
56
57
+ set_target_properties(mipstest PROPERTIES
58
+ CXX_STANDARD 17
59
+ CXX_VISIBILITY_PRESET hidden
60
+ CXX_STANDARD_REQUIRED ON
61
+ VISIBILITY_INLINES_HIDDEN ON
62
+ POSITION_INDEPENDENT_CODE ON)
63
64
+ target_link_libraries(mipstest PRIVATE arch_mips)
65
+ endif()
66
+endif()
67
0 commit comments