-
Notifications
You must be signed in to change notification settings - Fork 199
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
fix MSVC PDB installation #370
Conversation
As I know nothing about Windows, and very little about CMake, would anybody else like to comment on this patch? @carenas ? |
sorry, had been busy and far from Windows to verify that oue setup is indeed broken there but it might had been a result of the latest revert so a historical look at the code is definitely needed. the fact that CI was also patched and was working before mght seem to indicate this is more a "preference". definitely got confused by the description in the linked ticket, which might be worth expanding on, like is this using the cmake from VS, or one that was installed on top?, which version?, were older versions tested to behave the same?, what version of PCRE is affected and is this a regession? |
I believe this is not a matter of a regression or preference. This behavior occurs both in the default GitHub CI environment and my local setup, which is VS 2022 with the separately installed CMake. |
I see now, so Ideally the changes to CI could be avoided and an additional "dev" job that builds a DLL might be added to try to excercise this code path, but the logic seem to be broken as it assumes that "prefix/bin" will be the place where the binaries should be, which looks suspiciously like a GNU standard and not a Windows one. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CI uses build.yml for "production" like settings, so it is better to create a new job that would use VS in windows as part of "dev" builds.
.github/workflows/build.yml
Outdated
@@ -104,13 +104,16 @@ jobs: | |||
uses: actions/checkout@v3 | |||
|
|||
- name: Configure | |||
run: cmake -DPCRE2_SUPPORT_JIT=ON -DPCRE2_BUILD_PCRE2_16=ON -DPCRE2_BUILD_PCRE2_32=ON -DCMAKE_IGNORE_PREFIX_PATH=C:/Strawberry/c -B build -A Win32 | |||
run: cmake -G "Visual Studio 17 2022" -DBUILD_SHARED_LIBS=ON -DINSTALL_MSVC_PDB=ON -DPCRE2_SUPPORT_JIT=ON -DPCRE2_BUILD_PCRE2_16=ON -DPCRE2_BUILD_PCRE2_32=ON -DCMAKE_IGNORE_PREFIX_PATH=C:/Strawberry/c -B build -A Win32 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of changing this CI job, add a new one in dev.yml that addresses this specific dev configuration
.github/workflows/build.yml
Outdated
..\..\RunTest.bat | ||
./pcre2posix_test -v | ||
..\..\build\RelWithDebInfo\pcre2posix_test -v |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this really needed?
.github/workflows/build.yml
Outdated
|
||
- name: Test | ||
run: | | ||
cd build\Debug | ||
cd install\bin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"bin" might change based on other cmake variables, so it might be better to make that setting explicit at configure time to avoid fragility
Is this patch still valid/needed? |
Many thanks @cosine0 for reporting and fixing this! I apologise for the long time it took us to respond and accept the contribution. |
Sorry for responding late. And thank you for reviewing and accepting this! |
fix #369