Skip to content

[native_toolchain_c] Tools do not resolve from build hook on Windows. #2109

@MichealReed

Description

@MichealReed

The tool resolvers work in tests and outside of the build hook, but at least on Windows if I try to use them inside of the hook, it always fails.

I tried three, but there may be more. Tests emulating the build hook environment might be beneficial here.

[  +98 ms] [  +75 ms] Running `where vswhere.exe`.
[  +93 ms] [  +44 ms] INFO: Could not find files for the given pattern(s).

[        ]              Running `where ndk-build.cmd`.
[        ]            INFO: Could not find files for the given pattern(s).

[  +80 ms] [  +78 ms] Running `where clang.exe`.
[        ] [  +52 ms] Running `where vswhere.exe`.
[  +93 ms] [  +39 ms] INFO: Could not find files for the given pattern(s).

Maybe an environment variable issue from #32?

It's very difficult to diagnose which variable is missing in this sort of situation.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions