Skip to content
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

Precompiled header error with LLVM #667

Closed
Tenebralus opened this issue Dec 27, 2018 · 1 comment
Closed

Precompiled header error with LLVM #667

Tenebralus opened this issue Dec 27, 2018 · 1 comment

Comments

@Tenebralus
Copy link

Tenebralus commented Dec 27, 2018

Using the following applications:
Microsoft Visual Studio Community 2017 Version 15.9.4
LLVM Compiler Toolchain extension

We use precompiled header files in our project, but after changing the platform toolset to LLVM I get the following error:
CL : fatal error : #include of 'stdafx.h' not seen while attempting to use precompiled header
The code compiles fine with platform toolset v141.
Are you guys familiar with this problem?

Output log:
https://pastebin.com/WSGzmA1j

EDIT: I disabled the usage of precompiled header for the moment, that seems to work. I have found a command that might work
-include-pch <file>
but I am not familiar with LLVM and its commands, and they seem to have limited support in the Visual Studio interface.

@bejado
Copy link
Member

bejado commented Dec 27, 2018

I don't think this is related to Filament. The -include-pch seems to be the way to do it with Clang. You may need to manually modify the C++ command line flags through Visual Studio.

@bejado bejado closed this as completed Dec 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants