Skip to content

Conversation

@jschwe
Copy link
Member

@jschwe jschwe commented Nov 18, 2025

Extracted from #583.

target_is_ohos was not working as expected. This presumably originated in a seemingly harmless suggestion,
but surprisingly the expected return type / values for these functions is True | None, and not True | False (The other functions like target_is_xx don't return anything explicitly if the if does not match, which results in a None implicitly I guess). Returning False does not give the expected result. I noticed this while working on #583 - normally logs are still visible in servo, since we setup a thread that redirects output from stdout / stderr to the logging system on ohos (except in production mode).

@jschwe jschwe force-pushed the jschwender/fix-ohos-define branch from 880c396 to f5b45b6 Compare November 18, 2025 20:14
Appending the cross-compile toolchain to path
instead of prepending fixes the issue of `nsinstall` being unable to
run.

Signed-off-by: Jonathan Schwender <[email protected]>
Signed-off-by: Jonathan Schwender <[email protected]>
Signed-off-by: Jonathan Schwender <[email protected]>
Assertions .h is also included in `c` files, so using namespaces
is not an option to avoid the collision.
js::LogLevel, collides with the hilog LogLevel enum.

Signed-off-by: Jonathan Schwender <[email protected]>
Signed-off-by: Jonathan Schwender <[email protected]>
@jschwe jschwe force-pushed the jschwender/fix-ohos-define branch from 83f7fa6 to 32c419a Compare November 21, 2025 05:40
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.

2 participants