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

CMake: fix empty string warnings #7288

Merged
merged 1 commit into from Mar 26, 2024
Merged

Conversation

keithc-ca
Copy link
Member

@keithc-ca keithc-ca commented Mar 21, 2024

Prior to this change, numerous warnings are issued by cmake:

CMake Warning:
  Ignoring empty string ("") provided on the command line.

Rework how the decision to use cygpath -w is made: Provide USE_PATH_TOOL to GenerateStub.cmake so it can behave as desired.

This has the same goal as #7283, but without the problem (eclipse-openj9/openj9#19210) it introduced.

@keithc-ca
Copy link
Member Author

@babsingh Could you please have a look at this?

@babsingh
Copy link
Contributor

jenkins build all

@keithc-ca keithc-ca marked this pull request as draft March 21, 2024 19:07
@keithc-ca
Copy link
Member Author

Something is still wrong: In draft mode while I sort that out.

@keithc-ca
Copy link
Member Author

@babsingh Perhaps you can merge #7290 which reverts #7283 while I sort out what's wrong with this. Thanks.

Prior to this change, numerous warnings are issued by cmake:
  CMake Warning:
    Ignoring empty string ("") provided on the command line.

Rework how the decision to use 'cygpath -w' is made: Provide
USE_PATH_TOOL to GenerateStub.cmake so it can behave as desired.

Signed-off-by: Keith W. Campbell <keithc@ca.ibm.com>
@keithc-ca
Copy link
Member Author

I think the problem here was that the test in GenerateStub.cmake

if((CMAKE_HOST_SYSTEM_NAME STREQUAL "CYGWIN") AND (OMR_TOOLCONFIG STREQUAL "msvc"))

was failing because CMAKE_HOST_SYSTEM_NAME was instead "CYGWIN_NT-10.0-14393". I'm not sure how that happens, but I have a plan that avoids that problem that I'm testing now.

@keithc-ca keithc-ca changed the title Rework how decision to use 'cygpath -w' is made CMake: fix empty string warnings Mar 25, 2024
@keithc-ca keithc-ca marked this pull request as ready for review March 25, 2024 17:15
@keithc-ca
Copy link
Member Author

Tested internally.

@babsingh
Copy link
Contributor

jenkins build all

Copy link
Contributor

@babsingh babsingh left a comment

Choose a reason for hiding this comment

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

Only a known and unrelated failure is seen #7181.

@babsingh babsingh merged commit 75b2f82 into eclipse:master Mar 26, 2024
16 of 18 checks passed
@keithc-ca keithc-ca deleted the ddr_path_tool branch March 26, 2024 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants