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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]

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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to