Skip to content
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

Merge from constabulary/gb 2 #2

Merged
merged 37 commits into from
Sep 18, 2015
Merged

Merge from constabulary/gb 2 #2

merged 37 commits into from
Sep 18, 2015

Conversation

hyper0x
Copy link
Owner

@hyper0x hyper0x commented Sep 18, 2015

No description provided.

davecheney and others added 30 commits September 15, 2015 11:22
Introduce new package gb/log. Perhaps one day this can be outsourced
to a 3rd party.
Remove log.Errorf, it was only used in one place.
Remove log.Warnf, it was not used.
Fixes #340

No accessors to change linkmode and buildmode because we don't
support anything except buildmode=exe, and linkmode defaults to
automatic.
Fixes #366

```
% gb info
GB_PROJECT_DIR="/Users/dfc"
GB_SRC_PATH="/Users/dfc/src:/Users/dfc/vendor/src"
GB_PKG_DIR="/Users/dfc/pkg/darwin-amd64"
GB_BIN_SUFFIX="-darwin-amd64"
```
build: add test for cgo main with .cpp files (extern "C" linkage)
cmd/gb: gb info report pkg path and bin suffix
Fix: Clean working directory
Fixes #372

Use a unique temporary directory for cgo build files.
cgo: use unique directory for build
The gb test command advertises support for all valid
flags to gb build (e.g. -P), but the logic which determines which flags
should be sent to the test binary was not aware of them and blithely
passed them through. Add all valid build flags to the map indicating
they are meant for gb and not to passed through.
Avoid passing build flags to test process.
Fixes #375

The test for Package.isMain had a loophole where a main package,
being built as a test would be linked.

- [ ] Add unit test for Package.isMain
test: do not build a main package called main in test scope
cgo: support cgo packages that use c++
Pin wercker to go 1.4.2 (box v1.3.3)
Refactor Package.Objdir into Workdir(pkg)
Refactor cgoobjdir to cgoworkdir to reflect the Workdir(pkg) change
tianon and others added 7 commits September 17, 2015 00:43
Update wercker.yml to use "box: golang" and use the updated integration-tests to simplify test running
Add pkgname unit test, fix latent bug
Switch the README badge to show stats for master instead of all builds
Add ".exe" to the TestPackageBinfile test for windows binaries
hyper0x pushed a commit that referenced this pull request Sep 18, 2015
Merge from constabulary/gb 2
@hyper0x hyper0x merged commit 3a5df67 into hyper0x:master Sep 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants