msvc /DEBUG linker flag adds new dependencies from dlls

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

msvc /DEBUG linker flag adds new dependencies from dlls

Postby djdr0n » Mon May 11, 2020 11:33 am

When starting cef under windows7 there are some issue with “PowerDeterminePlatformRoleEx not found in POWRPROF.DLL”.
It's appears only when linking target executable with sandbox (even with release build) and using /DEBUG flag to generate .pdb's.
There are dll imports diff between 2 cefclient.exe executables built with cmake (msvc 2019 Release config) with and without /DEBUG flag.

Somebody knows how adding debug info may affect in new functions imports?
djdr0n
Newbie
 
Posts: 4
Joined: Mon May 11, 2020 11:16 am

Re: msvc /DEBUG linker flag adds new dependencies from dlls

Postby ndesktop » Mon May 11, 2020 12:51 pm

I filed a Chromium issue some time ago, but the call is done only if OS version is 8 or later, and powrprof.dll is delayload AFAIK.
ndesktop
Master
 
Posts: 750
Joined: Thu Dec 03, 2015 10:10 am

Re: msvc /DEBUG linker flag adds new dependencies from dlls

Postby djdr0n » Mon May 11, 2020 1:08 pm

ndesktop wrote:I filed a Chromium issue some time ago, but the call is done only if OS version is 8 or later, and powrprof.dll is delayload AFAIK.


/DELAYLOAD:powrprof.dll fixes issue with importing and calling this function.
But when /DEBUG flag is not specified this function is not imported at all.
I don't understand how /DEBUG flag lead in import new functions.
djdr0n
Newbie
 
Posts: 4
Joined: Mon May 11, 2020 11:16 am


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 48 guests