Fix numa build break (#14370)
authorJan Vorlicek <janvorli@microsoft.com>
Sat, 7 Oct 2017 09:56:24 +0000 (11:56 +0200)
committerGitHub <noreply@github.com>
Sat, 7 Oct 2017 09:56:24 +0000 (11:56 +0200)
This change fixes a break in build of coreclr on machines with libnuma
installed. The problem was that the numa header contains a couple of
inlined functions and we were using one of them. That made it to
have a hard reference to a function from the numa library that we
need to be soft so that coreclr can work even on machines without
the libnuma installed.

src/pal/src/numa/numashim.h

index 428fc88..dd7f58d 100644 (file)
@@ -13,6 +13,8 @@
 #include <numa.h>
 #include <numaif.h>
 
+#define numa_free_cpumask numa_bitmask_free
+
 // List of all functions from the numa library that are used
 #define FOR_ALL_NUMA_FUNCTIONS \
     PER_FUNCTION_BLOCK(numa_available) \