Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
A
atbuild
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
AnarchyTools
atbuild
Commits
7bdf0600
Commit
7bdf0600
authored
Aug 17, 2016
by
Drew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upgrade to Swift Preview 6
parent
cb4bbc95
Pipeline
#2464
failed with stage
in 38 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
14 deletions
+15
-14
atbuild/src/main.swift
atbuild/src/main.swift
+12
-11
atpkg
atpkg
+1
-1
attools/src/atllbuild.swift
attools/src/atllbuild.swift
+1
-1
tests/fixtures/dynamic_library/src/foo.swift
tests/fixtures/dynamic_library/src/foo.swift
+1
-1
No files found.
atbuild/src/main.swift
View file @
7bdf0600
...
...
@@ -54,12 +54,12 @@ var focusOnTask : String? = nil
var
packageFile
=
defaultPackageFile
var
toolchain
=
Platform
.
buildPlatform
.
defaultToolchainPath
for
(
i
,
x
)
in
Process
.
arguments
.
enumerated
()
{
for
(
i
,
x
)
in
CommandLine
.
arguments
.
enumerated
()
{
if
x
==
Options
.
CustomFile
.
rawValue
{
packageFile
=
Path
(
Process
.
arguments
[
i
+
1
])
packageFile
=
Path
(
CommandLine
.
arguments
[
i
+
1
])
}
if
x
==
Options
.
Toolchain
.
rawValue
{
toolchain
=
Process
.
arguments
[
i
+
1
]
toolchain
=
CommandLine
.
arguments
[
i
+
1
]
if
toolchain
==
"xcode"
{
toolchain
=
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain"
}
...
...
@@ -68,20 +68,21 @@ for (i, x) in Process.arguments.enumerated() {
}
}
if
x
==
Options
.
Platform
.
rawValue
{
let
platformString
=
Process
.
arguments
[
i
+
1
]
let
platformString
=
CommandLine
.
arguments
[
i
+
1
]
Platform
.
targetPlatform
=
Platform
(
string
:
platformString
)
}
if
x
==
Options
.
Configuration
.
rawValue
{
let
configurationString
=
Process
.
arguments
[
i
+
1
]
let
configurationString
=
CommandLine
.
arguments
[
i
+
1
]
currentConfiguration
=
Configuration
(
string
:
configurationString
)
}
}
//build overlays
var
overlays
:
[
String
]
=
[]
for
(
i
,
x
)
in
Process
.
arguments
.
enumerated
()
{
for
(
i
,
x
)
in
CommandLine
.
arguments
.
enumerated
()
{
if
x
==
Options
.
Overlay
.
rawValue
{
let
overlay
=
Process
.
arguments
[
i
+
1
]
let
overlay
=
CommandLine
.
arguments
[
i
+
1
]
overlays
.
append
(
overlay
)
}
}
...
...
@@ -122,7 +123,7 @@ do {
}
//usage message
if
Process
.
arguments
.
contains
(
"--help"
)
{
if
CommandLine
.
arguments
.
contains
(
"--help"
)
{
usage
()
}
...
...
@@ -134,10 +135,10 @@ func runTask(taskName: String, package: Package) {
//choose which task to run
if
Process
.
arguments
.
count
>
1
{
if
CommandLine
.
arguments
.
count
>
1
{
var
i
=
1
while
i
<
Process
.
arguments
.
count
{
let
arg
=
Process
.
arguments
[
i
]
while
i
<
CommandLine
.
arguments
.
count
{
let
arg
=
CommandLine
.
arguments
[
i
]
if
Options
.
allOptions
.
map
({
$0
.
rawValue
})
.
contains
(
arg
)
{
i
+=
1
}
...
...
atpkg
@
da869687
Subproject commit
b8f458526644c02ad39e46099def2ad5b53514af
Subproject commit
da8696870102753dbe74f18639bab66d9401740b
attools/src/atllbuild.swift
View file @
7bdf0600
...
...
@@ -350,7 +350,7 @@ final class ATllbuild : Tool {
//We just want to create a state where .atllbuild/objects and .atllbuild/llbuildtmp and .atllbuild/products exists.
//and in particular, without erasing the product directory, since that accumulates build products across
//multiple invocations of atllbuild.
if
Process
.
arguments
.
contains
(
"--clean"
)
{
if
CommandLine
.
arguments
.
contains
(
"--clean"
)
{
let
_
=
try
?
FS
.
removeItem
(
path
:
workDirectory
.
appending
(
"objects"
),
recursive
:
true
)
let
_
=
try
?
FS
.
removeItem
(
path
:
workDirectory
.
appending
(
"llbuildtmp"
),
recursive
:
true
)
}
...
...
tests/fixtures/dynamic_library/src/foo.swift
View file @
7bdf0600
public
class
Foo
{
open
class
Foo
{
public
init
()
{
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment