I'm using Visual Studio 2022 Pro and only recently I started to use Clang from the Visual Studio 2022 environment. It compiled my code and runs fine. But now I want to make a PGO compile.
In the past and using MSVC I copied the instrumented compile (engineturk.exe) to the application folder along with
pgort140.dll, and after some tests and exiting the application it generated engineturk!1.pgc file
which I copied to the compile output folder and then execute the
Build->Profile Guided Optimization-> Optimize
from the VS2022 menu.
But now with the Clang compiler when I do
Build->Profile Guided Optimization-> Instrument
I get the error:
Code: Select all
1>lld-link : error : could not open '/PGD:C:\Users\Alvaro\source\repos\engineturk\engine\x64\Release\engineturk.pgd': invalid argument
compiler that I installed from the VS2022 install program?
Thx,
Alvaro