Skip to content

[scripts-audit] CMake buildsystem#18843

Closed
strega-nil wants to merge 0 commit intomicrosoft:masterfrom
strega-nil:cmake_buildsystem
Closed

[scripts-audit] CMake buildsystem#18843
strega-nil wants to merge 0 commit intomicrosoft:masterfrom
strega-nil:cmake_buildsystem

Conversation

@strega-nil
Copy link
Copy Markdown
Contributor

@strega-nil strega-nil commented Jul 6, 2021

This does an actual audit of the vcpkg_*_cmake functions, rather than just replacing them like #16377

Depends on PR #18397

@strega-nil-ms strega-nil-ms added category:scripts-audit depends:different-pr This PR or Issue depends on a PR which has been filed labels Jul 6, 2021
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Are these variables the lists which are created a few lines before?
If yes:

  • They should be appended to here.
  • There is _param vs. _args inconsistency.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Given that this is an audit:
What is the point of ADD_BIN_TO_PATH with the given paths? No port installs to these paths: Every port uses paths that include ${PORT}. Cf. #17607 for the full painful story.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ignore, this is not tools.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

arg_ADD_BIN_TO_PATH needs still to be disabled in crossbuilds.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is it necessary to add ninja to the PATH?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

probably not since it is passed as CMAKE_MAKE_PROGRAM

Comment on lines 114 to 133
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this should be its own helper function because it is used more often.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't believe so, since it doesn't seem to read through PROCESSOR_ARCHITEW6432, it'll use the architecture of the process rather than the chip.

Comment on lines 214 to 276
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Move into own function ? z_vcpkg_select_default_toolchain I still think this should be defined in the triplet instead or selected earlier outside of vcpkg_configure_cmake because it has nothing to do with this function

@strega-nil-ms strega-nil-ms added info:next-rollup and removed depends:different-pr This PR or Issue depends on a PR which has been filed labels Jul 20, 2021
@strega-nil-ms strega-nil-ms force-pushed the cmake_buildsystem branch 2 times, most recently from 567835a to 63898d8 Compare July 21, 2021 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants