Skip to content

Commit 09b5af0

Browse files
authored
Merge pull request #1567 from microsoft/fix_apiscan_errors
add profile flag when linking to fix apiscan errors
2 parents 2ee8168 + 48855b0 commit 09b5af0

File tree

5 files changed

+6
-2
lines changed

5 files changed

+6
-2
lines changed
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/compile_windows.bat

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
:: This script compiles the attach and inject DLLs for x86 and x64 architectures.
2+
:: It runs as part of the PR checks in the debugpy repo, AND the artifacts are uploaded to github,
3+
:: so you don't have to run it locally.
4+
15
setlocal
26
@cd /d %~dp0
37

@@ -16,7 +20,7 @@ cl -DUNICODE -D_UNICODE /EHsc /Zi /O1 /W3 /LD /MD /D BITS_32 /Qspectre run_code_
1620
copy run_code_on_dllmain_x86.dll ..\run_code_on_dllmain_x86.dll /Y
1721
copy run_code_on_dllmain_x86.pdb ..\run_code_on_dllmain_x86.pdb /Y
1822

19-
cl /EHsc /Zi /O1 /W3 /Qspectre inject_dll.cpp /link /DEBUG /OPT:REF /OPT:ICF /GUARD:CF /out:inject_dll_x86.exe
23+
cl /EHsc /Zi /O1 /W3 /Qspectre inject_dll.cpp /link /PROFILE /GUARD:CF /out:inject_dll_x86.exe
2024
copy inject_dll_x86.exe ..\inject_dll_x86.exe /Y
2125
copy inject_dll_x86.pdb ..\inject_dll_x86.pdb /Y
2226

@@ -30,7 +34,7 @@ cl -DUNICODE -D_UNICODE /EHsc /Zi /O1 /W3 /LD /MD /D BITS_64 /Qspectre run_code_
3034
copy run_code_on_dllmain_amd64.dll ..\run_code_on_dllmain_amd64.dll /Y
3135
copy run_code_on_dllmain_amd64.pdb ..\run_code_on_dllmain_amd64.pdb /Y
3236

33-
cl /EHsc /Zi /O1 /W3 /Qspectre inject_dll.cpp /link /DEBUG /OPT:REF /OPT:ICF /GUARD:CF /out:inject_dll_amd64.exe
37+
cl /EHsc /Zi /O1 /W3 /Qspectre inject_dll.cpp /link /PROFILE /GUARD:CF /out:inject_dll_amd64.exe
3438
copy inject_dll_amd64.exe ..\inject_dll_amd64.exe /Y
3539
copy inject_dll_amd64.pdb ..\inject_dll_amd64.pdb /Y
3640

0 commit comments

Comments
 (0)