1. 14 Apr, 2016 1 commit
  2. 07 Apr, 2016 4 commits
    • Drew's avatar
      Toolchain support · 0c1ba2e6
      Drew authored
      This allows atbuild to use a different toolchain other than the one we
      use to develop atbuild (weekly snapshot).
      
      In particular, this allows you to use "released swift" "xcode swift" or
      any other kind of 2.2 Swift.
      
      Documentation PR to follow.
      
      Edited README to discuss atbuild options.
      
      Resolves #58 to my satisfaction.
      0c1ba2e6
    • Drew's avatar
      Remove print · 87a90096
      Drew authored
      It is a stupid print and it deserves to die
      87a90096
    • Drew's avatar
      Implement packageFramework, a framework packaging tool · c449e5c3
      Drew authored
      This allows Mac frameworks to be built directly from atbuild.
      c449e5c3
    • Drew's avatar
      Allow variable expansion for shell tool · 409cc69b
      Drew authored
      This allows the execution of a shell tool with the "collected sources"
      of another task.
      
      The intent here is to allow the creation of arbitrary tasks that accept
      source files as arguments. xcode-emit is an obvious candidate, and
      would allow it to break its dependence on atpkg, which it only uses for
      this single feature.
      
      There are other obvious programs that we might want to call with "all
      sources" (e.g. preprocessors, etc.) and they may not want to take a
      dependency on atpkg either.
      
      See https://github.com/AnarchyTools/atpkg/pull/23
      409cc69b
  3. 28 Mar, 2016 1 commit
  4. 19 Mar, 2016 1 commit
  5. 04 Mar, 2016 1 commit
    • Drew's avatar
      Support whole-module-optimization · eadeb144
      Drew authored
      Due to SR-881, whole-module-optimization is more complicated than simply
      adding it to compile options.
      
      As a workaround, we compile twice.
      eadeb144
  6. 22 Feb, 2016 1 commit
  7. 07 Feb, 2016 1 commit
  8. 06 Feb, 2016 1 commit
  9. 04 Feb, 2016 5 commits
    • Drew's avatar
      Improve diagnostic for missing XCTest test-executable · 1ef9795a
      Drew authored
      Was not renamed as part of the great rekeying.  Also, make this strongly
      typed.
      1ef9795a
    • Drew's avatar
      Remove unneeded import. · 61e7e2a7
      Drew authored
      This import is no longer required in snapshot
      
      swift-DEVELOPMENT-SNAPSHOT-2016-01-25-a
      
      due to a closed upstream bug I filed.
      61e7e2a7
    • Drew's avatar
      Provide diagnostic for applied overlays · d1394b24
      Drew authored
      When we run a task, it's often useful for debugging purposes to print
      what overlays were applied.
      d1394b24
    • Drew's avatar
      Ignore tool keys when warning from atllbuild · 6c86e64e
      Drew authored
      Previously, atllbuild would emit some spurious warnings when a tool key
      was used such as `overlays`.  We now ignore all tool keys.
      6c86e64e
    • Drew's avatar
      Umbrella headers v2 · 587894a9
      Drew authored
      We now include the synthesized module map in our build products.  To
      support this, a new `:modulemap "synthesized"` directive is available
      (and must be used if `umbrella-header` is used.)  We could potentially
      have other modulemap modes besides synthesized (explicit, for example).
      
      We use one modulemap privately as part of the build process (to store
      the umbrella header) and a different one publicly (which doesn't have
      the umbrella header).
      
      This is (surprisingly!) totally legal under the Clang module map
      specification.
      http://clang.llvm.org/docs/Modules.html#private-module-map-files
      
      > However, in some cases, the presence or absence of particular headers is used to distinguish between the “public” and “private” APIs of a particular library. For example, a library may contain the headers Foo.h and Foo_Private.h, providing public and private APIs, respectively. Additionally, Foo_Private.h may only be available on some versions of library, and absent in others. One cannot easily express this with a single module map file in the library:
      
      ```
      module Foo {
        header "Foo.h"
      
        explicit module Private {
          header "Foo_Private.h"
        }
      }
      ```
      
      > because the header Foo_Private.h won’t always be available. The module
      > map file could be customized based on whether Foo_Private.h is
      > available or not, but doing so requires custom build machinery.
      
      We are the custom build machinery of which the clattner foretold.
      
      Note that (some) Swift engineers claim this is dangerous, but it works,
      is compliant with the Clang specification, and the tests pass.
      
      I should probably also document one other thing that I found diagnosing
      why the previous approach didn't work.  A "swiftmodule" (which nobody
      seems to understand) actually (sometimes) functions as an overlay for a
      Clang module.  See e.g.
      https://github.com/apple/swift/blob/1b2288fa96e4d531956bc690e64616afc2fb3333/include/swift/Serialization/Validation.h#L41
      
      What happen is that if you compile with -import-underlying-module (which
      we do in the umbrella case) the swift module that gets built is a
      "overlay" that points to some underlying clang module, see here:
      https://twitter.com/drewcrawford/status/694995772148846592.  Then at
      import time somebody goes looking for that underlying module (e.g.
      modulemap) in addition to the .swiftmodule.
      
      However there is no reason (as far as Clang is concerned) why the
      modulemap it finds at runtime may not be totally different than the
      modulemap we used at compile time, so that's what we do.
      587894a9
  10. 02 Feb, 2016 7 commits
  11. 01 Feb, 2016 3 commits
    • Drew's avatar
      Add `publishProduct` atllbuild option · 0b8b3339
      Drew authored
      This allows a build.atpkg to export its products into a user-visible directory.
      
      I'm not totally sure this is the right design, but it does resolve #17.
      0b8b3339
    • Drew's avatar
      Add atbuild "user paths". · b1fc7420
      Drew authored
      This patch adds a "user path" which is global to an entire buildchain
      and allows tasks to progressively build up contents that are somewhat
      arbitrary.
      
      In particular, this is useful for AnarchyDispatch.  If we have
      a/b/AnarchyDispatch, then AnarchyDispatch can install itself to the
      ATBUILD_USER_PATH and be visible to both a and b.  Then we can inject
      includeWithUser: ["AnarchyDispatch"] in an overlay and everything "just
      works".
      b1fc7420
    • Drew's avatar
      Update to new API to atpkg · 777f7d08
      Drew authored
      777f7d08
  12. 28 Jan, 2016 1 commit
  13. 27 Jan, 2016 2 commits
  14. 19 Jan, 2016 4 commits
  15. 18 Jan, 2016 5 commits
  16. 17 Jan, 2016 2 commits