-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Pth not supported #4086
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
emcc supports precompiled headers with suffix |
Same error with gch, http://clang.llvm.org/docs/UsersManual.html
http://clang.llvm.org/docs/PCHInternals.html |
Looking into this more carefully, the core issue is that we didn't recognize the |
The one thing I didn't do is anything with |
Yes, for future versions of Clang> = 3.9. This will provide a more flexible precompilation of headers. |
Ok, reopening for pth. |
I don't know if PTH files are worth supporting. The official clang user's manual doesn't mention PTH files at all, preferring to focus on PCH files instead. (PTH files are mentioned in the in design documents, but nowhere else AFAICS.) The clang driver doesn't recognize |
Sounds reasonable to close, yeah. |
hello i have error: |
@pouyarb what version of emscripten are you using? The error message you getting looks like it was removed in #10560 (2020).. but the way the error is presented (with |
Im using version 1.39.7 due to qt requirements. I can not update emscripten |
In that case maybe you could petition the qt folks to update their emscripten requirements, since this issue has already been fixed on the emscripten side. |
thank you for your help. could you tell me which commit have fixed this issue? |
#10560 looks like a likely candidate since it removes the error in question. For that you would need version 1.40.1 or above. But honestly I wouldn't recommend upgrading to anything other than the very latest release (3.1.42). |
Include a precompiled header file not work in emscripten :
Generate Pch:
-std=c++11 -m32 -fno-exceptions -O2 -x c++-header xxx.h -o xxx.pch
Compile Obj:
-std=c++11 -m32 -fno-exceptions -O2 -c xxx.cpp -include-pch xxx.pch -o xxx.o
I have this error :
ERROR:root:xxx.pch: Input file has an unknown suffix, don't know what to do with it!
The text was updated successfully, but these errors were encountered: