Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solve warnings with PDB flags override #3296

Merged
merged 11 commits into from
Nov 27, 2020

Conversation

SDxKeeper
Copy link
Contributor

@SDxKeeper SDxKeeper commented Nov 23, 2020

First attempt to solve this issue in #3265 by setting flags on cmake level didn't work well with ninja.
This is second attempt where CMake files has been updated to remove /Zi flags and use /Z7 everywhere.

@SDxKeeper SDxKeeper requested review from ilya-lavrenov and a team November 23, 2020 16:02
@@ -217,7 +217,7 @@ if(WIN32)
# Compiler specific flags

ie_add_compiler_flags(/bigobj)
ie_add_compiler_flags(/MP)
ie_add_compiler_flags(/MP /FS)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, and in the same time it doesn't work as we can see in build results for commit d39f54d

@SDxKeeper SDxKeeper requested a review from a team November 23, 2020 16:56
@openvino-pushbot openvino-pushbot added the category: inference OpenVINO Runtime library - Inference label Nov 23, 2020
@@ -126,6 +126,11 @@ function(addIeTarget)
ie_developer_export_targets(${ARG_NAME} ${ARG_EXPORT_DEPENDENCIES})
endif()
endif()
if(WIN32)
# Provide default compile pdb name equal to target name
set_target_properties(${ARG_NAME} PROPERTIES COMPILE_PDB_NAME ${ARG_NAME})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is PDB name by default?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you specify a path name that does not include a file name (the path ends in backslash), the compiler creates a .pdb file named VCx0.pdb in the specified directory.
in our case vc140.pdb for all targets, because on root level cmake we specifiy CMAKE_COMPILE_PDB_OUTPUT_DIRECTORY only

@SDxKeeper SDxKeeper requested a review from a team November 23, 2020 22:39
@SDxKeeper SDxKeeper requested a review from a team as a code owner November 23, 2020 23:21
@SDxKeeper SDxKeeper changed the title Let cmake control PDB files format and force /FS WIP: Let cmake control PDB files format and force /FS Nov 24, 2020
@ilya-lavrenov ilya-lavrenov added this to the 2021.3 milestone Nov 24, 2020
@SDxKeeper SDxKeeper marked this pull request as draft November 24, 2020 14:29
@SDxKeeper SDxKeeper changed the title WIP: Let cmake control PDB files format and force /FS Solve warnings with PDB flags override Nov 27, 2020
@SDxKeeper SDxKeeper marked this pull request as ready for review November 27, 2020 10:13
@SDxKeeper SDxKeeper requested a review from a team November 27, 2020 10:13
@SDxKeeper SDxKeeper merged commit 083302d into openvinotoolkit:master Nov 27, 2020
@SDxKeeper SDxKeeper deleted the use_default_pdb_format branch November 27, 2020 15:16
evolosen pushed a commit to evolosen/openvino that referenced this pull request Dec 3, 2020
* resolve clash of tests compile pdb file names

* Solving problem using different way

* resolve duplicate flags for gtest
mryzhov pushed a commit to mryzhov/openvino that referenced this pull request Dec 11, 2020
* resolve clash of tests compile pdb file names

* Solving problem using different way

* resolve duplicate flags for gtest
mryzhov pushed a commit to mryzhov/openvino that referenced this pull request Dec 16, 2020
* resolve clash of tests compile pdb file names

* Solving problem using different way

* resolve duplicate flags for gtest
mryzhov pushed a commit to mryzhov/openvino that referenced this pull request Jan 14, 2021
* resolve clash of tests compile pdb file names

* Solving problem using different way

* resolve duplicate flags for gtest
jiwaszki pushed a commit to akuporos/openvino that referenced this pull request Jan 15, 2021
* resolve clash of tests compile pdb file names

* Solving problem using different way

* resolve duplicate flags for gtest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: inference OpenVINO Runtime library - Inference
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants