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

find_program: Fixes when the program has been overriden by executable #7002

Merged
merged 1 commit into from
Apr 27, 2020

Conversation

xclaesse
Copy link
Member

  • ExternalProgramHolder has path() method while CustomTargetHolder and
    BuildTargetHolder have full_path().
  • The returned ExternalProgramHolder's path() method was broken, because
    build.Executable object has no get_path() method, it needs the
    backend.
  • find_program('overriden_prog', version : '>=1.0') was broken because
    it needs to execute the exe that is not yet built. Now assume the
    program has the (sub)project version.
  • If the version check fails, interpreter uses
    ExternalProgramHolder.get_name() for the error message but
    build.Executable does not implement get_name() method.

@QuLogic
Copy link
Member

QuLogic commented Apr 21, 2020

s/overriden/overridden/g

- ExternalProgramHolder has path() method while CustomTargetHolder and
  BuildTargetHolder have full_path().
- The returned ExternalProgramHolder's path() method was broken, because
  build.Executable object has no get_path() method, it needs the
  backend.
- find_program('overridden_prog', version : '>=1.0') was broken because
  it needs to execute the exe that is not yet built. Now assume the
  program has the (sub)project version.
- If the version check fails, interpreter uses
  ExternalProgramHolder.get_name() for the error message but
  build.Executable does not implement get_name() method.
@xclaesse xclaesse added this to the 0.55.0 milestone Apr 21, 2020
@jpakkane jpakkane merged commit 39a69d1 into mesonbuild:master Apr 27, 2020
@xclaesse xclaesse deleted the override-find-program branch July 4, 2020 13:58
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.

3 participants