-
-
Notifications
You must be signed in to change notification settings - Fork 668
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add iOS toolchains, platforms, and constraint_values (#2090)
Refactored the description of target platforms. The source of truth is now the PLATFORMS table go/private/platforms.bzl. Declarations for config_settings in //go/platform; constraint_values and aliases in //go/toolchain; and toolchains in @go_sdk are generated from this table. In addition to the normal GOOS_GOARCH list, there are some additional entries for iOS. iOS platforms still have GOOS=darwin, but they are compatible with a different constraint_value (@bazel_tools//platforms:ios instead of @bazel_tools//platforms:osx). There are also separate platforms for pure mode, and cgo (with _cgo suffix). Cross compilation may still be done with (for example) --platforms=@io_bazel_rules_go//go/platforms:linux_amd64, and this no longer requires a configured C/C++ toolchain. To cross-compile with cgo, use --platforms=@io_bazel_rules_go//go/platforms:linux_amd64_cgo. A compatible configured C/C++ toolchain is required in that case. Fixes #2079
- Loading branch information
Jay Conrod
authored
Jun 13, 2019
1 parent
20ab486
commit f2373c9
Showing
20 changed files
with
583 additions
and
274 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Copyright 2019 The Bazel Authors. All rights reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
DEFAULT_DARWIN_CONSTRAINT_VALUE = "{default_darwin_constraint_value}" |
Oops, something went wrong.