[llvm-bugs] [Bug 42009] New: [PCH] errors with force include explicit pch path
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri May 24 12:40:28 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=42009
Bug ID: 42009
Summary: [PCH] errors with force include explicit pch path
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: Driver
Assignee: unassignedclangbugs at nondot.org
Reporter: trass3r at gmail.com
CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
richard-llvm at metafoo.co.uk
main.cpp:
int main() { printf("Hello\n"); }
pch.cpp:
#include "pch.h"
pch.h:
#include <stdio.h>
clang-cl -c pch.cpp /Ycpch.h
clang-cl -c main.cpp /Yupch.h /FIpch.h
del *.obj *.pch
clang-cl -c pch.cpp /Ycpch.h /Fppch.pch
clang-cl -c main.cpp /Yupch.h /FIpch.h
clang-cl -c main.cpp /Yupch.h /FIpch.h /Fppch.pch
del *.obj *.pch
Worked so far.
clang-cl -c pch.cpp /Ycpch.h /Fppch.h.pch
clang-cl -c main.cpp /Yupch.h /FIpch.h /Fppch.h.pch
fatal error: #include of 'pch.h' not seen while attempting to use precompiled
header
Using the default name suddenly doesn't work anymore either:
clang-cl -c pch.cpp /Ycpch.h /Fppch.pch
clang-cl -c main.cpp /Yupch.h /FIpch.h /Fppch.pch
fatal error: #include of 'pch.h' not seen while attempting to use precompiled
header
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190524/55c457a2/attachment.html>
More information about the llvm-bugs
mailing list