File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,20 @@ int main(int argc, char *argv[]) {
40
40
if(DISPATCH_HAVE_EXTENDED_SLPI_20348)
41
41
add_compile_definitions(DISPATCH_HAVE_EXTENDED_SLPI_20348)
42
42
endif()
43
+
44
+ check_c_source_compiles([=[
45
+ #include <Windows.h>
46
+ int main(int argc, char *argv[]) {
47
+ switch ((LOGICAL_PROCESSOR_RELATIONSHIP)0) {
48
+ case RelationProcessorModule:
49
+ return 0;
50
+ }
51
+ return 0;
52
+ }
53
+ ]=] DISPATCH_HAVE_EXTENDED_SLPI_22000)
54
+ if(DISPATCH_HAVE_EXTENDED_SLPI_22000)
55
+ add_compile_definitions(DISPATCH_HAVE_EXTENDED_SLPI_22000)
56
+ endif()
43
57
endif()
44
58
45
59
set(CMAKE_C_STANDARD 11)
Original file line number Diff line number Diff line change @@ -166,6 +166,9 @@ _dispatch_hw_get_config(_dispatch_hw_config_t c)
166
166
#endif
167
167
case RelationCache:
168
168
case RelationGroup:
169
+ #if defined(DISPATCH_HAVE_EXTENDED_SLPI_22000)
170
+ case RelationProcessorModule:
171
+ #endif
169
172
case RelationAll:
170
173
break;
171
174
}
You can’t perform that action at this time.
0 commit comments