Open virtuald opened 9 months ago
ccache fixed this in https://github.com/ccache/ccache/commit/7b8aaf562febeed81a1d27a6e498d63b8b4f6877. There's apparently a /Fo
option also that ccache didn't support, it's possible sccache doesn't either (I haven't checked).
I'm building a python package using setuptools, so I don't have a ton of control over the command line issued. However, 0.5.3 worked, and the ccache action we're using bumped to 0.7.4 (which I then bumped to 0.7.6) and my compiles are failing now.
You can see in the command line that there's a
... /Tpplayingwithfusion/pwf.cpp ...
, which then leads to the following sccache error:I presume this is a regression in sccache, since I'm using the same python interpreter/setuptools/etc?
According to the MSVC docs,
/Tp
is an option that specifies that the following filename is a C++ file regardless of extension: https://learn.microsoft.com/en-us/cpp/build/reference/tc-tp-tc-tp-specify-source-file-type?view=msvc-170Python's distutils (in setuptools) forces
/Tp
and/Tc
options: https://github.com/pypa/setuptools/blob/04a6bfe785ea45d32357b60a2f9692956c4d8beb/setuptools/_distutils/_msvccompiler.py#L369Sorry I can't give you a smaller reproducer, but this seems pretty straightforward?