-
Notifications
You must be signed in to change notification settings - Fork 195
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
Using compile cache can break linking certain library builds #1180
Comments
tobil4sk
added a commit
to tobil4sk/lime
that referenced
this issue
Jan 23, 2025
Similarly, this example breaks dynamic library builds with the compile cache on windows: <xml>
<files id="lib">
<cache value="true" asLibrary="true" />
<file name="lib.c" />
</files>
<target id="default" output="lib${DBG}" tool="linker" toolid="dll">
<files id="lib" />
</target>
</xml>
#1184 will solve the LNK4001 warning as well as the mac libtool error. However, for the dll linking problem, I'm not sure what the solution would be. |
joshtynjala
pushed a commit
to openfl/lime
that referenced
this issue
Feb 10, 2025
mcagabe19
pushed a commit
to MobilePorting/lime
that referenced
this issue
Feb 14, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When compiling a Build.xml like this, the build fails on mac while linking the default target with
HXCPP_COMPILE_CACHE
enabled:The problem is that the
lib
files are cached by hxcpp in a static library, and apart from that there are no object files. This means there is an emptyall_objs
file generated, which libtool doesn't seem to like. On other platforms (with different static linking tools) this is not an issue.The text was updated successfully, but these errors were encountered: