-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
703297f
commit 61d5a1a
Showing
6 changed files
with
76 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,18 @@ | ||
load("//swift:swift.bzl", "swift_binary") | ||
|
||
# This package is meant to demonstrate the use of explicit clang module compilation. | ||
# # This package is meant to demonstrate the use of explicit clang module compilation. | ||
|
||
# # In order to build with features "swift.use_c_modules" and "swift.emit_c_module", it is necessary | ||
# # to add all of the framework dependencies explicitly. SwiftShims is the only one required for | ||
# # compiling a swift binary with no imports. | ||
# swift_c_module( | ||
# name = "shims", | ||
# module_name = "SwiftShims", | ||
# system_module_map = "__BAZEL_XCODE_SDKROOT__/usr/lib/swift/shims/module.modulemap", | ||
# ) | ||
|
||
swift_binary( | ||
name = "hello_world", | ||
srcs = ["main.swift"], | ||
# deps = [":shims"], | ||
) |
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