-
-
Notifications
You must be signed in to change notification settings - Fork 661
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
asys #8817
asys #8817
Conversation
@@ -22,6 +22,15 @@ | |||
|
|||
package haxe; | |||
|
|||
#if (target.asys) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's no longer necessary to put dot-defines in parens?
@@ -588,6 +592,11 @@ let init_platform com pf = | |||
define com Define.Sys | |||
end else | |||
com.package_rules <- PMap.add "sys" Forbidden com.package_rules; | |||
if com.config.pf_asys then begin | |||
raw_define_value com.defines "target.asys" "true"; | |||
define com Define.Asys |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why have both target.asys
and asys
? I thought the defines not prefixed by target.
are just for backwards compatibility.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we have sys
we should also have asys
, otherwise this is just one giant trap.
# Conflicts: # libs/uv/uv_stubs.c
See #8831. Branch will be kept to experiment further, but we don't need an open long-term PR for this. |
Implementation of HXP-0010.
Note: this PR has been split into #8831 and #8832, in addition to the target-specific PRs:
TODO
sys.io.FileInput
andsys.io.FileOutput
were loaded hackily, this was moved toStd
imports - maybe that's not good enough?-dce no
is required for the tests not to hang