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

-dce no and -dce full #155

Open
sonygod opened this issue Aug 1, 2013 · 3 comments
Open

-dce no and -dce full #155

sonygod opened this issue Aug 1, 2013 · 3 comments

Comments

@sonygod
Copy link

sonygod commented Aug 1, 2013

haxe -main PhysicsMain -lib nape -D NAPE_RELEASE_BUILD -dce no -lib flambe -cp src -dce full -debug --no-opt --no-inline --macro flambe.platform.ManifestBuilder.use("build/web/assets") --flash-strict -swf-header 640:480:60:000000 -D fdb -D advanced-telemetry -swf-version 11 -swf

some time I don't want dce full for some Reflect function ,
but the flambe compile tool will auto add -dce full,and I add dce no in the yam file.

Optional flags to pass to the Haxe compiler
haxe_flags: -lib nape -D NAPE_RELEASE_BUILD -dce no

but not override -dce full.

I found this in flambe tool
commonFlags.push("-dce", "full");
I think you need first check the haxe_flags index of dec .

@sonygod
Copy link
Author

sonygod commented Aug 1, 2013

after remove -dce full
there is another issue
VerifyError: Error #1014: Invalid ArrayAccess。

at flambe.platform::BasicPointer/submitMove()[C:\Motion-Twin\haxe\lib\flambe\3,1,1\flambe\platform\BasicPointer.hx:104]
at flambe.platform::BasicMouse/submitMove()[C:\Motion-Twin\haxe\lib\flambe\3,1,1\flambe\platform\BasicMouse.hx:91]
at flambe.platform.flash::FlashMouse/onMouseMove()[C:\Motion-Twin\haxe\lib\flambe\3,1,1\flambe\platform\flash\FlashMouse.hx:61]

@aduros
Copy link
Owner

aduros commented Aug 1, 2013

Is that the complete stack trace...? There's no array indexing on that line.

@sonygod
Copy link
Author

sonygod commented Aug 2, 2013

it's an error in Matrix.hx because it's use ArrayAccess,then I change to dynamic to cheat the compiler to build.with -dce no.

purplepwny added a commit to purplepwny/flambe that referenced this issue Jun 27, 2014
Matrix had to be changed because of the issue already reported in aduros#143 and aduros#155, or else the compiled preloaded swf will not run without "Error #1014: Class ArrayAccess could not be found." ArrayAccess appears to be optimized out...or is otherwise unavailable. I'm not sure it's being used correctly in Matrix.transformArray anyway, and my change doesn't appear to hurt.
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

No branches or pull requests

2 participants