diff --git a/swift/stdlib/public/SwiftShims/CMakeLists.txt b/swift/stdlib/public/SwiftShims/CMakeLists.txt
index da408df6bae..73fd1cdfa30 100644
--- a/swift/stdlib/public/SwiftShims/CMakeLists.txt
+++ b/swift/stdlib/public/SwiftShims/CMakeLists.txt
@@ -121,7 +121,7 @@ swift_install_in_component(clang-builtin-headers
 
 swift_install_symlink_component(clang-resource-dir-symlink
   LINK_NAME clang
-  TARGET ../clang/${CLANG_VERSION}
+  TARGET ../clang/@TERMUX_CLANG_VERSION@
   DESTINATION "lib/swift")
 
 # Possibly install Clang headers under Clang's resource directory in case we
