[profile] Add InstrProfilingVersionVar.c.o to Darwin kext builtins
authorVedant Kumar <vsk@apple.com>
Wed, 26 Aug 2020 17:00:37 +0000 (10:00 -0700)
committerVedant Kumar <vsk@apple.com>
Wed, 26 Aug 2020 17:02:13 +0000 (10:02 -0700)
Fixes a build failure in the Darwin kernel. Tested with:

% nm -mU lib/libclang_rt.cc_kext_x86_64h_osx.a | grep __llvm_profile_raw_version

rdar://67809173

compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake

index a31bcc3..f6689c2 100644 (file)
@@ -399,7 +399,8 @@ macro(darwin_add_builtin_libraries)
                       ../profile/InstrProfilingBuffer
                       ../profile/InstrProfilingPlatformDarwin
                       ../profile/InstrProfilingWriter
-                      ../profile/InstrProfilingInternal)
+                      ../profile/InstrProfilingInternal
+                      ../profile/InstrProfilingVersionVar)
   foreach (os ${ARGN})
     list_intersect(DARWIN_BUILTIN_ARCHS DARWIN_${os}_BUILTIN_ARCHS BUILTIN_SUPPORTED_ARCH)
     foreach (arch ${DARWIN_BUILTIN_ARCHS})