bf11253163
Allow the `Swift` language to be enabled with the Xcode generator for Xcode >= 6.1. Reject it on other generators and with older Xcode versions. Since Apple is the only vendor implementing the language right now, the compiler id can be just `Apple`.
11 lines
289 B
Swift
11 lines
289 B
Swift
@objc class SwiftMainClass {
|
|
class func SwiftMain(argc:Int, argv:UnsafePointer<UnsafePointer<CChar>>) -> Int32 {
|
|
println("argc: \(argc)")
|
|
for (var i = 0; i < argc; ++i) {
|
|
var argi = String.fromCString(argv[i])
|
|
println("arg[\(i)]: \(argi)");
|
|
}
|
|
return 0;
|
|
}
|
|
}
|