# Swift Soars Ever Higher

**URL:** <https://forums.swift.org/t/swift-soars-ever-higher/34036>\
**Category:** Core Libraries\
**Created:** [February 23, 2020, 7:41pm UTC](https://forums.swift.org/t/swift-soars-ever-higher/34036 "2020-02-23T19:41:58Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![compnerd](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/compnerd/32/2165_2.png) [@compnerd](https://forums.swift.org/u/compnerd)\
**Post date:** [March 21, 2020, 7:09pm UTC](https://forums.swift.org/t/swift-soars-ever-higher/34036/21 "2020-03-21T19:09:16Z")

</div>

Hi @pvieito!

> [@pvieito](#):
>
> I was trying the new [Swift for TensorFlow Windows installer](https://github.com/tensorflow/swift/blob/master/Installation.md#windows) (great improvement on user experience 😃)

Glad to hear that!

> [@pvieito](#):
>
> it seems that currently you have to define the libraries, headers and resources location in each invocation of `swiftc`

This is partially correct. You should be using `-sdk` instead of `-resource-dir`. The problem here is that I need to find and revive an old patch of mine which would actually result in this being collapsed into a single flag: `-sdk`. I'm not convinced that having a single flag to add the SDK search paths to the compiler driver is a bad thing - defaulting that via an environment variable like `SDKROOT` is certainly possible and reasonable, but I suspect that some people may be unhappy about the environment variable impacting the compilation process (and I can completely empathize - its very easy to get something injected without realizing it).

> [@pvieito](#):
>
> I would rather use PowerShell instead of the `cmd` do you know if it is posible to set the configuration of the `x64 Native Tools Command Prompt` into PowerShell?

That is technically unrelated to the Swift project and is a request for Visual Studio. I would recommend that you file a Developer Community for improvements there. Note that Visual Studio 2019 has a `Developer PowerShell for VS 2019` option but that is x86 only. I don't know what the plans are around providing an environment that works for x64 and ARM64 development within PowerShell. For now, I highly recommend cmd as the working environment.

> [@pvieito](#):
>
> Finally, is there any way to run the Swift REPL on Windows

Yes, it is possible to run the REPL on Windows, I've definitely been able to use it. The error that you are seeing is something new and not something that I am aware of unfortunately. Perhaps @JDevlieghere might be able to shed some light on that.

CC: @JDevlieghere

---

<div class="post-metadata">

**Author:** ![compnerd](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/compnerd/32/2165_2.png) [@compnerd](https://forums.swift.org/u/compnerd)\
**Post date:** [April 1, 2020, 9:53pm UTC](https://forums.swift.org/t/swift-soars-ever-higher/34036/22 "2020-04-01T21:53:25Z")

</div>

> [@pvieito](#):
>
> Finally, is there any way to run the Swift REPL on Windows? It seems to be posible to run it, but it crashes each time you send any command with the following error:
> 
> ```swift
> Assertion failed: false && "called into swift language runtime stub", file S:\14\s\toolc
> 
> ```

I was looking at something related to this, I suspect that something has changed in lldb where the implementation refactored the POSIX path but failed to account for Windows and has regressed this. It requires a bit of work to support loading modules.

---

<div class="post-metadata">

**Author:** ![compnerd](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/compnerd/32/2165_2.png) [@compnerd](https://forums.swift.org/u/compnerd)\
**Post date:** [April 2, 2020, 2:23am UTC](https://forums.swift.org/t/swift-soars-ever-higher/34036/23 "2020-04-02T02:23:03Z")

</div>

A relatively horrible workaround that should work for the time being:

```nohighlight
lldb "--repl=-sdk C:\Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk -target x86_64-unknown-windows-msvc"
1> :expr (void*)LoadLibraryA("swiftCore.dll")

```

With this I'm able to do something like this:

 ![Capture](https://global.discourse-cdn.com/swift/original/2X/8/83a1423d19f4cf2283fff5acc63e533080b2542d.png)

[Previous page](https://forums.swift.org/t/swift-soars-ever-higher/34036.md?page=1)
