**Describe the bug** My Android CI builds each new snapshot tag of the stdlib with the Android NDK, but since #59846 it cannot [cross-compile the stdlib](https://github.com/buttaface/swift-android-sdk/runs/7496710224?check_suite_focus=true#step:6:1137): ``` swift/stdlib/public/Platform/Glibc.swift.gyb:13:19: error: no such module 'SwiftGlibc' @_exported import SwiftGlibc // Clang module ``` **Steps To Reproduce** Steps to reproduce the behavior: 1. Cross-compile the stdlib with an alternate libc sysroot. **Expected behavior** Previously, the Swift compiler would [look in the `-sdk` and `-resource-dir` flags passed in for a Swift resource directory](https://github.com/apple/swift/pull/59846/files#diff-f768ac8c03b01ed7761b76d70eaa046bd6032a4b7559873d13fd46a5033c9e83R35) and use the `glibc.modulemap` from there. Now, it [only remaps any Include directories the clang Driver is aware of](https://github.com/apple/swift/pull/59846/files#diff-f768ac8c03b01ed7761b76d70eaa046bd6032a4b7559873d13fd46a5033c9e83R183), which works fine if using the system libc sysroot, but not for alternate cross-compilation sysroots. **Environment** - OS: Ubuntu 20.04 x86_64 building for Android API 24 with LTS NDK 23c **Additional context** @3405691582 has also noted that [a mistaken check from that pull broke building for non-Linux platforms like BSD](https://github.com/apple/swift/pull/59846/files#diff-f768ac8c03b01ed7761b76d70eaa046bd6032a4b7559873d13fd46a5033c9e83R172). @egorzhdan, let me know if you have a fix in mind.