[cfe-dev] [Modules TS] feedback
Boris Kolpackov via cfe-dev
cfe-dev at lists.llvm.org
Thu May 11 06:22:20 PDT 2017
Hi David,
David Blaikie <dblaikie at gmail.com> writes:
> Passing -fmodules-codegen and -fmodules-debuginfo (I think I'm remembering
> the spelling right) to the step that creates the pcm file will establish
> the right conditions, then passing that pcm file to clang again -c, should
> generate the required object file.
While I believe the spelling is correct, it still does not work:
clang++-5.0 -std=c++1z -fmodules-ts -fmodules-codegen -fmodules-debuginfo \
-I.. --precompile -x c++-module -o hello.pcm hello.mxx
clang: error: unknown argument: '-fmodules-codegen'
clang: error: unknown argument: '-fmodules-debuginfo'
Also note that this is not an unresolved symbol but a duplicate:
clang++-5.0 -std=c++1z -fmodules-ts -I.. --precompile -x c++-module -o hello.pcm hello.mxx
clang++-5.0 -std=c++1z -fmodules-ts -I.. -fmodule-file=hello.pcm -c hello.cxx
clang++-5.0 -std=c++1z -fmodules-ts -I.. -fprebuilt-module-path=. -c driver.cxx
clang++-5.0 -std=c++1z -fmodules-ts -I.. -o driver driver.o hello.o
hello.o: In function `hello::non_inline()':
hello.cxx:(.text+0x0): multiple definition of `hello::non_inline()'
driver.o:driver.cxx:(.text+0x0): first defined here
Thanks,
Boris
More information about the cfe-dev
mailing list