diff --git a/build.psm1 b/build.psm1 index a6b616c3b8..622faf93a0 100644 --- a/build.psm1 +++ b/build.psm1 @@ -237,7 +237,7 @@ function Start-PSBuild { } # Build native components - if ($IsLinux -or $IsOSX) { + if (($IsLinux -or $IsOSX) -and -not $SMAOnly) { $Ext = if ($IsLinux) { "so" } elseif ($IsOSX) {