Files
swift-mirror/stdlib/public/Backtracing/modules/module.modulemap
Alastair Houghton 9329776a5d [Backtracing] Use C++ interop to fix elf.h issue on Linux.
We have some problems on Linux where Glibc pulls in `<elf.h>` and then
we end up with conflicting definitions.  Fix by using C++ interop and
putting our definitions into a namespace.

rdar://137201928
2025-01-10 13:49:14 +00:00

38 lines
709 B
Plaintext

module BacktracingImpl {
module ImageFormats {
module Elf {
header "ImageFormats/Elf/elf.h"
requires cplusplus
export *
}
module Dwarf {
header "ImageFormats/Dwarf/dwarf.h"
header "ImageFormats/Dwarf/eh_frame_hdr.h"
requires cplusplus
export *
}
export *
}
module OS {
module Darwin { header "OS/Darwin.h" }
module Windows { header "OS/Windows.h" }
module Libc { header "OS/Libc.h" }
}
module Runtime {
header "Runtime/Runtime.h"
requires cplusplus
}
module FixedLayout {
header "FixedLayout.h"
requires cplusplus
}
module CompressionLibs {
header "Compression.h"
requires cplusplus
}
}