Skip to content

Commit

Permalink
🌲 Update
Browse files Browse the repository at this point in the history
  • Loading branch information
muukii committed Oct 21, 2022
1 parent 1708113 commit 2997421
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .swiftpm/xcode/xcshareddata/xcschemes/grain.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
</BuildableProductRunnable>
<CommandLineArguments>
<CommandLineArgument
argument = "./Sources/Fixture.swift"
argument = "./Sources/Fixture.swift --verbose"
isEnabled = "YES">
</CommandLineArgument>
</CommandLineArguments>
Expand Down
4 changes: 4 additions & 0 deletions Sources/Grain/CLI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ struct CLI: AsyncParsableCommand {
}

@Argument var targetFilePath: String
@Flag var verbose = false

mutating func run() async throws {

Expand Down Expand Up @@ -124,6 +125,7 @@ runtimeFrameworksPath: \(runtimeFrameworksPath)
"-Xfrontend", "-disable-implicit-string-processing-module-import",
"-I", applicationPath.pathString,
]
cmd += ["-swift-version", "5"]

try await withTemporaryDirectory { workingPath in

Expand All @@ -134,6 +136,8 @@ runtimeFrameworksPath: \(runtimeFrameworksPath)

cmd += ["-o", compiledFile.pathString]

Log.debug("Make executable binary\n\(cmd.joined(separator: "\\\n"))")

// compile
let result = try await TSCBasic.Process.popen(
arguments: cmd,
Expand Down
4 changes: 1 addition & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,5 @@ fi

swift build $SWIFT_BUILD_FLAGS
mkdir -p ${PREFIX}/bin/grain-build
cp -f ${BUILD_DIR}/grain ${PREFIX}/bin/grain-build/
cp -f ${BUILD_DIR}/libSwiftToolsSupport.dylib ${PREFIX}/bin/grain-build/
cp -f ${BUILD_DIR}/libGrainDescriptor.dylib ${PREFIX}/bin/grain-build/
cp -r -f ${BUILD_DIR}/ ${PREFIX}/bin/grain-build/
ln -f -s ${PREFIX}/bin/grain-build/grain ${PREFIX}/bin/grain

0 comments on commit 2997421

Please sign in to comment.