HaxeFoundation / haxe

Haxe - The Cross-Platform Toolkit
https://haxe.org
6.03k stars 648 forks source link

[macro] do not use dependency file as file for macro created modules #11702

Closed kLabz closed 6 days ago

kLabz commented 1 week ago

TODO:

Simn commented 1 week ago

Hmm yes, this makes sense. Perhaps it would be a good idea to enumerate these files so that we can be sure the file keys are unique? I'm not sure in which cases this is actually relevant, but that seems like a good idea either way.

kLabz commented 1 week ago

Hmm yes, this makes sense. Perhaps it would be a good idea to enumerate these files so that we can be sure the file keys are unique? I'm not sure in which cases this is actually relevant, but that seems like a good idea either way.

For sure; though do you have an idea how to actually implement that? (or a starting point)

Simn commented 1 week ago

Printf.sprintf "file_%i_%i" com.compilation_step com.some_counter would be my first idea.