diff options
author | Volodymyr Sapsai <vsapsai@apple.com> | 2023-08-16 17:58:40 -0700 |
---|---|---|
committer | Volodymyr Sapsai <vsapsai@apple.com> | 2023-08-16 18:27:17 -0700 |
commit | 52c62d46a0c8ebf6023233cabc5beb4ee2687c78 (patch) | |
tree | 6f17049b67b7a4e8c0aea4d35bf46b06d041442d /llvm/lib/Transforms/Utils/InlineFunction.cpp | |
parent | 2628fa3351b021d2ab82dcd833a14d7b52840a01 (diff) | |
download | llvm-52c62d46a0c8ebf6023233cabc5beb4ee2687c78.zip llvm-52c62d46a0c8ebf6023233cabc5beb4ee2687c78.tar.gz llvm-52c62d46a0c8ebf6023233cabc5beb4ee2687c78.tar.bz2 |
Reland "[modules] Fix error about the same module being defined in different .pcm files when using VFS overlays."
Fixing Windows buildbot by not using "BuildTemporaries/module.modulemap"
because it is interpreted as defining a module in "BuildTemporaries" directory.
Fix errors like
> module 'MultiPath' is defined in both 'path/to/modules.cache/3JR48BPRU7BCG/MultiPath-1352QHUF8RNMU.pcm' and 'path/to/modules.cache/3JR48BPRU7BCG/MultiPath-20HNSLLIUDDV1.pcm'
To avoid building extra identical modules `-ivfsoverlay` option is not a
part of the hash like "/3JR48BPRU7BCG/". And it is build system's
responsibility to provide `-ivfsoverlay` options that don't cause
observable differences. We also need to make sure the hash like
"-1352QHUF8RNMU" is not affected by `-ivfsoverlay`. As this hash is
defined by the module map path, use the path prior to any VFS
remappings.
rdar://111921464
Differential Revision: https://reviews.llvm.org/D156749
Diffstat (limited to 'llvm/lib/Transforms/Utils/InlineFunction.cpp')
0 files changed, 0 insertions, 0 deletions