8000 genarate and package PDB to wheel. · pytorch/pytorch@85ed6ad · GitHub
[go: up one dir, main page]

Skip to content

Commit 85ed6ad

Browse files
xuhancnpytorchmergebot
authored andcommitted
genarate and package PDB to wheel.
1 parent a3b3ede commit 85ed6ad

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,9 @@ if(MSVC)
559559
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Zc:__cplusplus")
560560
set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} -Xcompiler /Zc:__cplusplus")
561561

562+
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /Zi")
563+
set(CMAKE_SHARED_LINKER_FLAGS_RELEASE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE} /DEBUG /OPT:REF /OPT:ICF")
564+
562565
set(CMAKE_NINJA_CMCLDEPS_RC OFF)
563566
foreach(
564567
flag_var

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1397,6 +1397,7 @@ def main():
13971397
"lib/*.dylib*",
13981398
"lib/*.dll",
13991399
"lib/*.lib",
1400+
"lib/*.pdb",
14001401
]
14011402
)
14021403
aotriton_image_path = os.path.join(lib_path, "aotriton.images")

0 commit comments

Comments
 (0)
0