Created
January 3, 2019 13:30
-
-
Save tindzk/f2ba8f0a57bdca652bd396e38ce10b6a to your computer and use it in GitHub Desktop.
Detect if program is run within Scala Native
This file contains hidden or 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
def isScalaNative: Boolean = | |
System.getProperty("java.vm.name") == "Scala Native" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment