Prioritize haxe sources over swc

79 views
Skip to first unread message

Balázs Zubák

unread,
Aug 24, 2016, 12:49:12 PM8/24/16
to Haxe
Hello,

When I'm compiling a project that uses an swc, and there is a name conflict, i want the compiler to use the haxe sources, instead of the swc.

So there is no error with name conflict during compilation, but at runtime it uses the swc version instead of mine.
Is there any solution for it without renaming?

I know it's not normal, but i'm in a middle of a big migration from flash to haxe, so i don't want to break namespaces, but it cause in this middle step issues for me.

Thanks a lot!

Philippe Elsass

unread,
Aug 24, 2016, 3:03:11 PM8/24/16
to Haxe

What is the order of the compiler arguments? If it's like libs, you have -cp src after the swc reference it will work (you can have multiple -cp src entries in the command).


--
To post to this group haxe...@googlegroups.com
http://groups.google.com/group/haxelang?hl=en
---
You received this message because you are subscribed to the Google Groups "Haxe" group.
For more options, visit https://groups.google.com/d/optout.

Balázs Zubák

unread,
Aug 24, 2016, 4:09:51 PM8/24/16
to Haxe
Tried both way, but looks like doesn't help.
Message has been deleted

我每天睡不着

unread,
Aug 25, 2016, 3:48:17 PM8/25/16
to Haxe

Michel Romecki

unread,
Aug 26, 2016, 4:48:23 AM8/26/16
to haxe...@googlegroups.com
Hej,
If I understand well what you try to do, there is a @:bind metadata for
that, but it seems not working anymore I don't know why...
http://old.haxe.org/manual/tips_and_tricks#flash-specific-metadata

Balázs Zubák

unread,
Aug 26, 2016, 7:48:05 PM8/26/16
to Haxe
Thanks guys,

I've just solved it with remove dependencies from the swc. Btw it can be an interesting question, how to force ordering...
Reply all
Reply to author
Forward
0 new messages