Skip to content

Commit 78c0540

Browse files
authored
[Glibc] Refer to UUID headers from the modulemap using relative paths
This improves portability of the Swift toolchains by removing a usage of absolute path to Glibc. The Glibc modulemap is now injected into the Glibc include path using LLVM VFS, so it can reference Glibc headers using relative paths. This already works for other Glibc headers (e.g. `assert.h`)
1 parent f5787c9 commit 78c0540

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/Platform/glibc.modulemap.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ module SwiftGlibc [system] {
5151

5252
% if CMAKE_SDK != "WASI" and CMAKE_SDK != "ANDROID":
5353
module CUUID [system] {
54-
header "${GLIBC_INCLUDE_PATH}/uuid/uuid.h"
54+
header "uuid/uuid.h"
5555
link "uuid"
5656
export *
5757
}

0 commit comments

Comments
 (0)