Commit Graph

16 Commits

Author SHA1 Message Date
Dan Hecht
ffa7829b70 IMPALA-3918: Remove Cloudera copyrights and add ASF license header
For files that have a Cloudera copyright (and no other copyright
notice), make changes to follow the ASF source file header policy here:

http://www.apache.org/legal/src-headers.html#headers

Specifically:
1) Remove the Cloudera copyright.
2) Modify NOTICE.txt according to
   http://www.apache.org/legal/src-headers.html#notice
   to follow that format and add a line for Cloudera.
3) Replace or add the existing ASF license text with the one given
   on the website.

Much of this change was automatically generated via:

git grep -li 'Copyright.*Cloudera' > modified_files.txt
cat modified_files.txt | xargs perl -n -i -e 'print unless m#Copyright.*Cloudera#i;'
cat modified_files_txt | xargs fix_apache_license.py [1]

Some manual fixups were performed following those steps, especially when
license text was completely missing from the file.

[1] https://gist.github.com/anonymous/ff71292094362fc5c594 with minor
    modification to ORIG_LICENSE to match Impala's license text.

Change-Id: I2e0bd8420945b953e1b806041bea4d72a3943d86
Reviewed-on: http://gerrit.cloudera.org:8080/3779
Reviewed-by: Dan Hecht <dhecht@cloudera.com>
Tested-by: Internal Jenkins
2016-08-09 08:19:41 +00:00
Henry Robinson
8a33b1861b Optionally dynamically link Impala executables
This patch adds two new flags to make_impala.sh:

-build_shared_libs: Impala libraries (excluding thirdparty ones) will be
 built as shared objects (.so), and linked dynamically.

-build_static_libs: Impala libraries will be built as archive
 files (.a), and linked statically. This was the behaviour before this
 patch, and is still the default for make_impala.sh.

The speedup from dynamic linking for a clean build is significant:

make_impala.sh -clean -build_static_libs: 11m48.676s
make_impala.sh -clean -build_shared_libs:  5m46.943s

make_debug.sh now passes -build_shared_libs by
default. make_[asan|release].sh still builds with statically linked libraries. All
automated builds will be statically linked for now; we can move them to
dynamic linking on a case-by-case basis.

Change-Id: Icfd8101bf8e85cadd61d8995ae8864f8730297ea
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/3828
Reviewed-by: Henry Robinson <henry@cloudera.com>
Tested-by: jenkins
2014-08-17 12:44:05 -07:00
Henry Robinson
3e3c0991cc Remove PGO and duplicated code from build scripts
We had four scripts doing roughly the same thing - calling cmake and
then calling make_impala.sh. This patch pushes the cmake call into
make_impala.sh and then changes make_[asan|debug|release].sh to be
trivial one-line calls into make_impala.sh.

This patch also removes the PGO build, which is no longer used and no
longer worked.

Change-Id: Ib5c8ba910e52b030c172678f86db7d56e3f8c306
Reviewed-on: http://gerrit.ent.cloudera.com:8080/3001
Reviewed-by: Henry Robinson <henry@cloudera.com>
Tested-by: jenkins
Reviewed-on: http://gerrit.ent.cloudera.com:8080/3621
2014-07-27 02:14:42 -07:00
Nong Li
f9dd32724c Cleanup build scripts.
Consolidated our build scripts and added the -notests option which skips
build the BE tests.

Change-Id: Ida6aa064b7fe47e535c142b9af92b7c158e83c32
Reviewed-on: http://gerrit.ent.cloudera.com:8080/2043
Reviewed-by: Nong Li <nong@cloudera.com>
Tested-by: jenkins
Reviewed-on: http://gerrit.ent.cloudera.com:8080/2201
2014-04-13 17:11:39 -07:00
Lenni Kuff
86f69fb96f IMP-1306: Fix build scripts to properly generate Impala version info for packaging builds
The problem was that were were deleting the version.info file because the default
of gen_build_version.py recently changed from --noclean to --clean.

Also fixed a bug in the shell version generation and made debugging a bit easier
by dumping the contents of version.info whenever it is generated.

Change-Id: I764d01c9e46eed1bd39de79bf076c15afa599486
Reviewed-on: http://gerrit.ent.cloudera.com:8080/1901
Reviewed-by: Alex Behm <alex.behm@cloudera.com>
Tested-by: Lenni Kuff <lskuff@cloudera.com>
(cherry picked from commit fa673b4d3342fc825ee7fa942bd254234d222906)
Reviewed-on: http://gerrit.ent.cloudera.com:8080/1910
Reviewed-by: Lenni Kuff <lskuff@cloudera.com>
2014-03-14 08:45:16 -07:00
Aaron Davidson
d0665481d1 Vary number of build threads based on number of cores
Simply makes buildall.sh and the make_*.sh commands use 2 * ncores
build threads. ncores includes logical CPUs.

Change-Id: Ib3fbf1f1c8362c5bd3afab61f4d3030a50c51c10
Reviewed-on: http://gerrit.ent.cloudera.com:8080/288
Reviewed-by: Lenni Kuff <lskuff@cloudera.com>
Tested-by: jenkins
2014-01-08 10:52:22 -08:00
Nong Li
4d89735ec5 Fix up bin/make_* scripts to use rm -f. 2014-01-08 10:51:14 -08:00
Nong Li
c4c2a7168d Fix IR gen build dependency. 2014-01-08 10:48:52 -08:00
Nong Li
65f4fd98e4 Move to LLVM 3.2 2014-01-08 10:47:23 -08:00
Henry Robinson
2f339f2ed8 Add ASL license to all public files 2014-01-08 10:46:32 -08:00
Nong Li
bc08241ffb IR cross compile fixes for inlined string-value functions. 2014-01-08 10:46:19 -08:00
ishaan
e84cc0a9eb Enable code coverage on release builds. 2014-01-08 10:44:41 -08:00
Kay Ousterhout
e5c42edad2 Changed make_debug script to limit the # of threads used when make-ing.
The number of threads is set to be consistent with the number used in buildall.
2012-07-19 16:04:49 -07:00
Lenni Kuff
1abe6c973a Added support for creating a build with gcov code coverage instrumentation
Usage:
./buildall.sh -codecoverage
./bin/make_debug.sh -codecoverage
2012-06-01 14:20:29 -07:00
Nong Li
88237350f0 Change the build to allow debug and release builds to coexist. 2012-02-17 18:14:04 -08:00
Nong Li
bf74bc25e3 Some cleanup:
- Fixed issue with SSE file parse.
  - Moved build scripts to impala/bin.  Rebuilding from just BE does not work.
  - Cleanedup a few compiler warnings.
  - Add option to disable automatic counters for profilers.
2011-12-31 06:17:28 -08:00