HaxeFoundation / HaxeFoundation/hxcpp

Using compile cache can break linking certain library builds

Open
#1,180 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
330
Forks
227
Avg merge
2d 16h
Merged PRs (30d)
18

Description

When compiling a Build.xml like this, the build fails on mac while linking the default target with `HXCPP_COMPILE_CACHE` enabled:

```xml






```

```
fatal error: /Applications/Xcode_15.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file list file: obj/darwin64/all_objs is empty
```

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 empty `all_objs` file generated, which libtool doesn't seem to like. On other platforms (with different static linking tools) this is not an issue.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.