Skip to content

Commit

Permalink
initial checkin, nothing much to see here.
Browse files Browse the repository at this point in the history
Swift SVN r4
  • Loading branch information
lattner committed Jul 18, 2010
1 parent 18844bc commit afc81c1
Show file tree
Hide file tree
Showing 9 changed files with 194 additions and 0 deletions.
83 changes: 83 additions & 0 deletions Makefile
@@ -0,0 +1,83 @@
##===- Makefile --------------------------------------------*- Makefile -*-===##
#
# This source file is part of the Swift.org open source project
#
# Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
# Licensed under Apache License v2.0 with Runtime Library Exception
#
# See http://swift.org/LICENSE.txt for license information
# See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
#
##===----------------------------------------------------------------------===##

# If SWIFT_LEVEL is not set, then we are the top-level Makefile. Otherwise, we
# are being included from a subdirectory makefile.

ifndef SWIFT_LEVEL

IS_TOP_LEVEL := 1
SWIFT_LEVEL := .
DIRS := lib tools # include docs

PARALLEL_DIRS :=

endif

ifeq ($(MAKECMDGOALS),libs-only)
DIRS := $(filter-out tools docs, $(DIRS))
OPTIONAL_DIRS :=
endif

###
# Common Makefile code, shared by all Swift Makefiles.

# Set LLVM source root level.
LEVEL := $(SWIFT_LEVEL)/../..

# Include LLVM common makefile.
include $(LEVEL)/Makefile.common

This comment has been minimized.

Copy link
@rubenfonseca

rubenfonseca Dec 6, 2015

Can you please tell me where can you find this file?


# Set common Swift build flags.
CPP.Flags += -I$(PROJ_SRC_DIR)/$(SWIFT_LEVEL)/include \
-I$(PROJ_OBJ_DIR)/$(SWIFT_LEVEL)/include
ifdef SWIFT_VENDOR
CPP.Flags += -DSWIFT_VENDOR='"$(SWIFT_VENDOR) "'
endif

###
# Swift Top Level specific stuff.

ifeq ($(IS_TOP_LEVEL),1)

ifneq ($(PROJ_SRC_ROOT),$(PROJ_OBJ_ROOT))
$(RecursiveTargets)::
$(Verb) if [ ! -f test/Makefile ]; then \
$(MKDIR) test; \
$(CP) $(PROJ_SRC_DIR)/test/Makefile test/Makefile; \
fi
endif

test::
@ $(MAKE) -C test

report::
@ $(MAKE) -C test report

clean::
@ $(MAKE) -C test clean

libs-only: all

tags::
$(Verb) etags `find . -type f -name '*.h' -or -name '*.cpp' | \
grep -v /lib/Headers | grep -v /test/`

cscope.files:
find tools lib include -name '*.cpp' \
-or -name '*.def' \
-or -name '*.td' \
-or -name '*.h' > cscope.files

.PHONY: test report clean cscope.files

endif
2 changes: 2 additions & 0 deletions lib/Lex/Lexer.cpp
@@ -0,0 +1,2 @@
int X;

23 changes: 23 additions & 0 deletions lib/Lex/Makefile
@@ -0,0 +1,23 @@
##===- swift/lib/Lex/Makefile ------------------------------*- Makefile -*-===##
#
# This source file is part of the Swift.org open source project
#
# Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
# Licensed under Apache License v2.0 with Runtime Library Exception
#
# See http://swift.org/LICENSE.txt for license information
# See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
#
##===----------------------------------------------------------------------===##
#
# This implements the Lexer library for the C-Language front-end.
#
##===----------------------------------------------------------------------===##

SWIFT_LEVEL := ../..
include $(SWIFT_LEVEL)/../../Makefile.config

This comment has been minimized.

Copy link
@rubenfonseca

rubenfonseca Dec 6, 2015

Can you please tell me where can you find this file?


LIBRARYNAME := swiftLex

include $(SWIFT_LEVEL)/Makefile

17 changes: 17 additions & 0 deletions lib/Makefile
@@ -0,0 +1,17 @@
##===- lib/Makefile ----------------------------------------*- Makefile -*-===##
#
# This source file is part of the Swift.org open source project
#
# Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
# Licensed under Apache License v2.0 with Runtime Library Exception
#
# See http://swift.org/LICENSE.txt for license information
# See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
#
##===----------------------------------------------------------------------===##
SWIFT_LEVEL := ..

PARALLEL_DIRS = Lex Parse

include $(SWIFT_LEVEL)/Makefile

19 changes: 19 additions & 0 deletions lib/Parse/Makefile
@@ -0,0 +1,19 @@
##===- swift/lib/Parse/Makefile ----------------------------*- Makefile -*-===##
#
# This source file is part of the Swift.org open source project
#
# Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
# Licensed under Apache License v2.0 with Runtime Library Exception
#
# See http://swift.org/LICENSE.txt for license information
# See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
#
##===----------------------------------------------------------------------===##

SWIFT_LEVEL := ../..
include $(SWIFT_LEVEL)/../../Makefile.config

LIBRARYNAME := swiftParse

include $(SWIFT_LEVEL)/Makefile

1 change: 1 addition & 0 deletions lib/Parse/Parser.cpp
@@ -0,0 +1 @@
int x;
18 changes: 18 additions & 0 deletions tools/Makefile
@@ -0,0 +1,18 @@
##===- tools/Makefile --------------------------------------*- Makefile -*-===##
#
# This source file is part of the Swift.org open source project
#
# Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
# Licensed under Apache License v2.0 with Runtime Library Exception
#
# See http://swift.org/LICENSE.txt for license information
# See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
#
##===----------------------------------------------------------------------===##

SWIFT_LEVEL := ..
DIRS := swift

include $(SWIFT_LEVEL)/../../Makefile.config

include $(SWIFT_LEVEL)/Makefile
28 changes: 28 additions & 0 deletions tools/swift/Makefile
@@ -0,0 +1,28 @@
##===- tools/swift/Makefile -------------------------------*- Makefile -*-===##
#
# This source file is part of the Swift.org open source project
#
# Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
# Licensed under Apache License v2.0 with Runtime Library Exception
#
# See http://swift.org/LICENSE.txt for license information
# See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
#
##===----------------------------------------------------------------------===##

SWIFT_LEVEL := ../..

TOOLNAME = swift

# Include this here so we can get the configuration of the targets that have
# been configured for construction. We have to do this early so we can set up
# LINK_COMPONENTS before including Makefile.rules
include $(SWIFT_LEVEL)/../../Makefile.config

LINK_COMPONENTS := $(TARGETS_TO_BUILD) bitwriter codegen ipo selectiondag
#USEDLIBS = clangFrontend.a clangDriver.a clangCodeGen.a clangSema.a \
# clangChecker.a clangAnalysis.a clangRewrite.a clangAST.a \
# clangParse.a clangLex.a clangBasic.a

include $(SWIFT_LEVEL)/Makefile

3 changes: 3 additions & 0 deletions tools/swift/swift.cpp
@@ -0,0 +1,3 @@

int main() {
}

41 comments on commit afc81c1

@Daniel15
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2014 - 2015 copyright on a checkin from 2010, seems legit.

@ZevEisenberg
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Always wondered whether it was called Swift from the start, or whether they came up with a name after they decided it was going to be their next language. Looks like the former!

Edit: oh, you mean the dodgy copyright is in this file. Yup, seems legit.

@jmkr
Copy link

@jmkr jmkr commented on afc81c1 Dec 3, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ELI5: how would a commit from 2010 be altered to add the 2014-2015 copyright lines?

@Dinduks
Copy link

@Dinduks Dinduks commented on afc81c1 Dec 3, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jmkr git rebase -i :)

@jonathonw
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using git filter-branch (or similar) to run a script across all files and all revisions, to ensure that copyright notices and the like are applied consistently across the project.

This "breaks" the repository in the sense that object hashes are all going to change, but, since this is the first time this repo's been exposed to external contributors (and their internal repository where Apple actually does work is almost certainly different), that's not that big a deal.

@jmkr
Copy link

@jmkr jmkr commented on afc81c1 Dec 3, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very cool. Thanks guys!

@espositocode
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

@caoer
Copy link

@caoer caoer commented on afc81c1 Dec 3, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@kreshikhin
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's one small commit for man, one giant push for mankind. %)

@greg3z
Copy link

@greg3z greg3z commented on afc81c1 Dec 3, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, that copyright thing looks a bit anachronistic ^^

@jcanizales
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pducks32
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@Markypc3
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mkdir swift && cd swift
Git init
Build structures
Git add .
Git commit -m "svn checkin..."
And thus began the journey...

@Daniel15
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Git commit -m "svn checkin..."

lol, pretty sure it would have actually been an SVN checkin 😆

@rockshassa
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 epic commit msg

@raincoats
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

c00l

@malhal
Copy link

@malhal malhal commented on afc81c1 Dec 4, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

5 years old already 🎂

@jayrparro
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

woot! 🙌

@herkyl
Copy link

@herkyl herkyl commented on afc81c1 Dec 4, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎱

@arpitjalan
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏 👏

@axelandersson
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Posting in (hopefully) historical thread.

@alonecuzzo
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AMAZE

@dornad
Copy link

@dornad dornad commented on afc81c1 Dec 4, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AMAZE^2

@ileacristian
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@codestergit
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for starting this ❤️

@timbroder
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome and inspiring

@bigshahan
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

♥️

@ashishagrwl
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sweet!

@XueshiQiao
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Leave a footprint in the start of amazing Swift

@amachino
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@ndmeiri
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

@andysolomon
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😇

@CoderXpert
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@iMuks
Copy link

@iMuks iMuks commented on afc81c1 Mar 30, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great...!!!

@CrazyFanFan
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I‘m late

@Liu-Jing-Jing
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2010 07 17 first commit

@x4m3
Copy link

@x4m3 x4m3 commented on afc81c1 Jul 25, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

happy 8th birthday swift!

@olgusirman
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Grow and old together ❤️

@mohamedebrahim96
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HBD swift and i hope apple use Android

@kyagg7
Copy link

@kyagg7 kyagg7 commented on afc81c1 Jul 25, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hbd swift

@heinhtetzor
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Anyone 2020 Dec in the middle of Pandemic?

Please sign in to comment.