diff options
author | 2015-08-25 14:12:00 +0000 | |
---|---|---|
committer | 2015-08-26 07:37:57 +0000 | |
commit | 709bc61850f031a08c602c653598e9c409c96856 (patch) | |
tree | 2a6f582386ead9c54e42a0d115518fb2270b2076 /third_party | |
parent | 590ea39a05d66b44a459661898c34abc8cc8a937 (diff) |
Port to FreeBSD.
--
Change-Id: I4e65cc583e758d2f7e45209ffcb37f6a871e2ed7
Reviewed-on: https://bazel-review.git.corp.google.com/#/c/1840
MOS_MIGRATED_REVID=101462155
Diffstat (limited to 'third_party')
-rw-r--r-- | third_party/BUILD | 6 | ||||
-rwxr-xr-x | third_party/ijar/test/testenv.sh | 8 |
2 files changed, 10 insertions, 4 deletions
diff --git a/third_party/BUILD b/third_party/BUILD index 5c5928777f..39704c1668 100644 --- a/third_party/BUILD +++ b/third_party/BUILD @@ -15,6 +15,7 @@ filegroup( ":k8": ["protobuf/protoc-linux-x86_64.exe"], ":piii": ["protobuf/protoc-linux-x86_32.exe"], ":arm": ["protobuf/protoc-linux-arm32.exe"], + ":freebsd": ["protobuf/protoc-linux-x86_32.exe"], }), ) @@ -375,3 +376,8 @@ config_setting( name = "arm", values = {"host_cpu": "arm"}, ) + +config_setting( + name = "freebsd", + values = {"host_cpu": "freebsd"}, +) diff --git a/third_party/ijar/test/testenv.sh b/third_party/ijar/test/testenv.sh index e14aadf7a1..0cb2c21da8 100755 --- a/third_party/ijar/test/testenv.sh +++ b/third_party/ijar/test/testenv.sh @@ -23,16 +23,16 @@ source "${TEST_SRCDIR}/src/test/shell/unittest.bash" || \ { echo "Failed to source unittest.bash" >&2; exit 1; } -## Mac OS X stat and MD5 +## OSX/BSD stat and MD5 PLATFORM="$(uname -s | tr 'A-Z' 'a-z')" -if [[ "$PLATFORM" = "darwin" ]]; then +if [[ "$PLATFORM" = "linux" ]]; then function statfmt() { - stat -f "%z" $1 + stat -c "%s" $1 } MD5SUM=/sbin/md5 else function statfmt() { - stat -c "%s" $1 + stat -f "%z" $1 } MD5SUM=md5sum fi |