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

Minor changes to work with Xcode 6 beta 5 #1

Merged
merged 2 commits into from Aug 13, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions Logger/Logger.swift
Expand Up @@ -4,17 +4,17 @@ import Foundation
///
/// Constructor takes prefix string which will be printed before actual object
///
class Logger
public class Logger
{
var prefix: String

init(_ prefix: String)
public init(_ prefix: String)
{
self.prefix = prefix
}

/// Prints `object` with prefix
func log<T>(object: T)
public func log<T>(object: T)
{
print(prefix)
println(object)
Expand Down
7 changes: 2 additions & 5 deletions Logger/Makefile
@@ -1,16 +1,13 @@
SDK = `xcrun --show-sdk-path --sdk macosx`

module: Logger.swiftmodule Logger.a


Logger.swiftmodule:
xcrun swift -emit-module Logger.swift -sdk $(SDK) -module-name Logger
xcrun -sdk macosx swiftc -emit-module Logger.swift -module-name Logger

Logger.a: Logger.o
ar rcs libLogger.a Logger.o

Logger.o:
xcrun swift -emit-library -emit-object Logger.swift -sdk $(SDK) -module-name Logger
xcrun -sdk macosx swiftc -emit-library -emit-object Logger.swift -module-name Logger

clean:
rm -f Logger.o Logger.swiftdoc Logger.swiftmodule libLogger.a
Expand Down