OK I think it might have worked?
Dumb question, but does this look right?? These are the last messages printed out before it returned to the command line.
/Users/carlpeto/avr/swift/swift/stdlib/public/SDK/Foundation/UUID.swift:62:40: warning: 'unsafeBitCast' from 'UnsafeMutablePointer<uuid_string_t>' (aka 'UnsafeMutablePointer<(Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8)>') to 'UnsafePointer' (aka 'UnsafePointer') changes pointee type and may lead to undefined behavior; use the 'withMemoryRebound' method on 'UnsafeMutablePointer<uuid_string_t>' (aka 'UnsafeMutablePointer<(Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8)>') to rebind the type of memory
return String(cString: unsafeBitCast(str, to: UnsafePointer.self), encoding: .utf8)!
^
/Users/carlpeto/avr/swift/swift/stdlib/public/SDK/Foundation/UUID.swift:70:48: warning: 'unsafeBitCast' from 'UnsafeMutablePointer<uuid_t>' (aka 'UnsafeMutablePointer<(UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8)>') to 'UnsafeMutablePointer' changes pointee type and may lead to undefined behavior; use the 'withMemoryRebound' method on 'UnsafeMutablePointer<uuid_t>' (aka 'UnsafeMutablePointer<(UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8)>') to rebind the type of memory
return Int(bitPattern: CFHashBytes(unsafeBitCast($0, to: UnsafeMutablePointer.self), CFIndex(MemoryLayout<uuid_t>.size)))
^
/Users/carlpeto/avr/swift/swift/stdlib/public/SDK/Foundation/UUID.swift:87:38: warning: 'unsafeBitCast' from 'UnsafePointer<uuid_t>' (aka 'UnsafePointer<(UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8)>') to 'UnsafePointer' changes pointee type and may lead to undefined behavior; use the 'withMemoryRebound' method on 'UnsafePointer<uuid_t>' (aka 'UnsafePointer<(UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8)>') to rebind the type of memory
return NSUUID(uuidBytes: unsafeBitCast($0, to: UnsafePointer.self))
^
/Users/carlpeto/avr/swift/swift/stdlib/public/SDK/Foundation/UUID.swift:26:34: warning: 'unsafeBitCast' from 'UnsafeMutablePointer<uuid_t>' (aka 'UnsafeMutablePointer<(UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8)>') to 'UnsafeMutablePointer' changes pointee type and may lead to undefined behavior; use the 'withMemoryRebound' method on 'UnsafeMutablePointer<uuid_t>' (aka 'UnsafeMutablePointer<(UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8)>') to rebind the type of memory
uuid_generate_random(unsafeBitCast($0, to: UnsafeMutablePointer.self))
^
/Users/carlpeto/avr/swift/swift/stdlib/public/SDK/Foundation/UUID.swift:33:32: warning: 'unsafeBitCast' from 'UnsafeMutablePointer<uuid_t>' (aka 'UnsafeMutablePointer<(UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8)>') to 'UnsafeMutablePointer' changes pointee type and may lead to undefined behavior; use the 'withMemoryRebound' method on 'UnsafeMutablePointer<uuid_t>' (aka 'UnsafeMutablePointer<(UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8)>') to rebind the type of memory
reference.getBytes(unsafeBitCast($0, to: UnsafeMutablePointer.self))
^
/Users/carlpeto/avr/swift/swift/stdlib/public/SDK/Foundation/UUID.swift:43:39: warning: 'unsafeBitCast' from 'UnsafeMutablePointer<uuid_t>' (aka 'UnsafeMutablePointer<(UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8)>') to 'UnsafeMutablePointer' changes pointee type and may lead to undefined behavior; use the 'withMemoryRebound' method on 'UnsafeMutablePointer<uuid_t>' (aka 'UnsafeMutablePointer<(UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8)>') to rebind the type of memory
return uuid_parse(string, unsafeBitCast($0, to: UnsafeMutablePointer.self))
^
[895/1170] Compiling /Users/carlpeto/avr/swift/build/Ninja-ReleaseAssert/swift-macosx-x86_64/stdlib/private/StdlibUnittest/macosx/x86_64/StdlibUnittest.o
/Users/carlpeto/avr/swift/swift/stdlib/private/StdlibUnittest/StdlibUnittest.swift.gyb:579:5: warning: default will never be executed
default:
^
[1170/1170] Running utility command for swift-benchmark-macosx-x86_64
That's all!
I was sort of expecting to see a "completed" message and I wasn't expecting so many warnings!
But I don't see an "error" or "failed" message so I guess it's worked? (Running a quick compile of a super simple swift file seems to compile to sensible LLVM IR and on to roughly sane looking assembly language.)