[PATCH] D54923: [Modules] Remove non-determinism while serializing DECL_CONTEXT_LEXICAL and DECL_RECORD
Bruno Cardoso Lopes via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 27 10:18:37 PST 2018
bruno added a comment.
Although we can't synthesize a testcase for inclusion in the patch. Here is how one should attempt to reproduce the problem in macOS 10.14.
echo '@import Foundation;' > test.m
clang -fmodules test.m -o test.o -c \
-fmodules-cache-path=/tmp/cache \
-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk
mv /tmp/cache /tmp/cache1
clang -fmodules test.m -o test.o -c \
-fmodules-cache-path=/tmp/cache \
-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk
mv /tmp/cache /tmp/cache2
HASH=`ls /tmp/cache1`
for i in `find /tmp/cache1 -type f -iname "*.pcm"`; do
F=`basename $i`;
diff /tmp/cache1/$HASH/$F /tmp/cache2/$HASH/$F;
done
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D54923/new/
https://reviews.llvm.org/D54923
More information about the cfe-commits
mailing list