diff options
| author | Jay Weisskopf <jay@jayschwa.net> | 2018-06-29 22:22:04 -0400 |
|---|---|---|
| committer | Jay Weisskopf <jay@jayschwa.net> | 2018-06-29 22:22:04 -0400 |
| commit | 25bbb1a8ff7074a56b4da98de24a549e223d0009 (patch) | |
| tree | 4e7f7190753ab9b8f4d15d9d5242fd626600446f /src/link.cpp | |
| parent | a3ab4325fd05807c4a5b70aed3b515ce7ccd753f (diff) | |
| download | zig-25bbb1a8ff7074a56b4da98de24a549e223d0009.tar.gz zig-25bbb1a8ff7074a56b4da98de24a549e223d0009.zip | |
Fix version detection for out-of-source builds
Git was called in the build directory and not the source directory.
This works fine when the build directory resides within the source
repository, but doesn't work for out-of-source builds. Example:
```
~/zigbuild$ cmake ../zig
fatal: not a git repository (or any of the parent directories): .git
Configuring zig version 0.2.0+
```
Use Git's `-C <path>` flag to always point to the source directory so
that it doesn't matter where the build directory lives.
Diffstat (limited to 'src/link.cpp')
0 files changed, 0 insertions, 0 deletions
