aboutsummaryrefslogtreecommitdiff
path: root/build
AgeCommit message (Collapse)Author
2015-03-30Remove trailing / in project path for windowsAndrew Hsieh
To determin project path, ndk-build searches parent directory (recursively) if current doesn't have jni/Android.mk or AndroidManifest.xml. In that case, path is expanded to absolute, eg. C:\android-ndk\samples\hello-jni\\AndroidManifest.xml, and the \\ may fail subsequent $(wildcard ...). Remove trailing / in project path. See b.android.com/160584 Change-Id: I234b065df9bb10a10e183234dffd92299699566b
2015-03-30Compile all gcc toolchains with binutils-2.25Andrew Hsieh
Change-Id: Ia05e441e5d4876dccb2658816c80b394ae81c834
2015-03-30Copy more license files to gcc prebuilt toolchainAndrew Hsieh
3 more files: COPYING3, COPYING3.LIB and COPYING.RUNTIME Change-Id: I207c3d24ced01ab8f5b28fea07c1b0c49bf95656
2015-03-30Merge "Enable ld.gold for aarch64"Andrew Hsieh
2015-03-30Merge "Compile x86/x86_64 STL with -mstackrealign"Andrew Hsieh
2015-03-30Merge "Upgrade all gdb to 7.7"Andrew Hsieh
2015-03-30Merge "Compile mips/mips64 toolchain with binutils-2.25"Andrew Hsieh
2015-03-19Update MIPS to use binutils 2.25 and remove GCC default options thatSteve Ellcey
are no longer needed. Change-Id: I2213255d80a223de33dd12b0be0179c59c27c739
2015-03-04Remove an obselete comment.Dan Albert
Change-Id: I03e7146e445cec3f99781c19c8a204f6bf4805cf
2015-03-02Fix failing Fix-PR-target-63209.patchIlya Konstantinov
Fix the patch to apply on gcc revision 7e8c3dad070b469494f5e8e09ee73cd99bb84c12.
2015-02-24Enable ld.gold for aarch64Andrew Hsieh
Also compile all ld.gold with --enable-threads which adds two options --threads Run the linker multi-threaded --no-threads Do not run the linker multi-threaded [default] Change-Id: I6fd6fc9715e87bfa4984d9fad45b17dfd3198e4f
2015-02-24Compile x86/x86_64 STL with -mstackrealignAndrew Hsieh
x86/x86_64 compilers since r10d stop adding -mstackrealign implicitly for performance reason: compilers assume stack is properly aligned BEFORE call, and manipulate stack pointer to observe this invariance already. This does assume stack pointer is properly aligned to begin with, and there is no rogue hand-coded assembly in the call chains... Unfortunately not all x86-based device call JNI with stack 16-byte aligned (eg. ASUS_T00F). This CL compiles x86 prebuilt STL libraries with -mstackrealign regardless. Note that x86 STL libraries in r10d already compiled with -mstackrealign Change-Id: I7a74799b5a5d845672b0206954829eb46e81fd78
2015-02-24Upgrade all gdb to 7.7Andrew Hsieh
Change-Id: I78abd8e818fbf212e8408275f7ebec6e975ea075
2015-02-24Compile mips/mips64 toolchain with binutils-2.25Andrew Hsieh
Fixes for mips64 and/or r6 are only backported to 2.25 Change-Id: I9f5ddb48fa880489144a7a15e04810dff9e53b90
2015-02-13Merge "Use APP_PROJECT_PATH if NDK_PROJECT_PATH isn't set"Andrew Hsieh
2015-02-01Allow building .asm files for x86_64 as wellMartin Storsjo
Change-Id: I4b00361fd66e67e8e59349e5705f13b7c18463ac
2015-01-29Merge "Add -target-api N to llvm-rs-cc"Andrew Hsieh
2015-01-29Merge "Fix --visible-static"Andrew Hsieh
2015-01-29Use APP_PROJECT_PATH if NDK_PROJECT_PATH isn't setAndrew Hsieh
APP_PROJECT_PATH is documented as an absolute path to project root directory but it doesn't work as intended because currently ndk-build uses NDK_PROJECT_PATH instead. NDK_PROJECT_PATH cannot be replaced with APP_PROJECT_PATH because SDK integration (where NDK_PROJECT_PATH=null tells ndk-build to stop searching for Android.mk because SDK always explicitly provides it via APP_BUILD_SCRIPT) This CL simpliy sets empty NDK_PROJECT_PATH to APP_PROJECT_PATH, and check consistency when both are set. Change-Id: I373f333f0787ad0a5d2ceddd4f18262ab085425d
2015-01-28Remove unused variable.Dan Albert
Change-Id: Iedc1f0792ab31a20f9cd1c9cb4a67aa43198acb8
2015-01-23Add -target-api N to llvm-rs-ccAndrew Hsieh
Otherwise HelloComputeNDK compiled by r10c/r10d's llvm-rs-cc (whose target-api is set to 21) may crash on device running API 19. E/bcinfo (28302): Invalid API version: 21 is out of range ('11' - '19') E/RenderScript(28302): Failed to translate bitcode from version: 21 E/rsC++ (28302): Internal error: Object id 0. BUG=19093878 Also see http://stackoverflow.com/questions/28057049/targeting-pre-lollipop-devices-using-renderscript-from-ndk-c Change-Id: I790bce551be957114a60986a9e4b9b9e9f9eeb67
2015-01-23Fix --visible-staticAndrew Hsieh
To apply to both C and C++ code Needed by https://android-review.googlesource.com/#/c/123330 Change-Id: Ieb61c28d3bc9dbea4ffb90b37d97235715ccd5a8
2015-01-16Misc fix for abcc.Lai Wei-Chih
Change-Id: I994283f8182a0162f9a02be6a9087735ec8195ff
2015-01-09Fix NDK build called from top-level script rebuild-all-prebuilt.shAndrew Hsieh
Change-Id: I49c03b691eadfbcf4bc98865ac2077964c259c1f
2015-01-07Rename internal ABI mipsr6 as mips32r6Andrew Hsieh
The 32-bit r6 should really be named as mips32r6 Note that r6 is the default for mips64 See comment in https://android-review.googlesource.com/#/c/116410/3/core/binary.mk for details Change-Id: I2bd095d226413ae9f91f054c43f3c35a9ebaeea2
2014-12-30Fix abcc build broken.Lai Wei-Chih
Fix build broken for abcc and use gcc-4.9 to compile 32bit/64bit device toolchains. Change-Id: If0a1054a6379a86e01659af0f539fb45b6a36330
2014-12-19Merge "Enable indirect functions when building gcc."Andrew Hsieh
2014-12-19Merge "Don't build libc++abi on unknown arch due to assembly file."Andrew Hsieh
2014-12-18Remove host sedAndrew Hsieh
prebuilt/*/bin/sed* aren't used, not even in user-facing scripts like ndk-gdb and build/awk/gen-cygwin-deps-converter.awk BUG=18590813 Change-Id: I2f05d3152c5e12f69e677547a25b050c9c6b57e1
2014-12-18Refresh mclinker local patchesAndrew Hsieh
Change-Id: I7ca87f29bd18e129c37a6b26d1d1482798866ccf
2014-12-18Remove GCC 4.6Andrew Hsieh
Change-Id: I840e7a2183e956e27e5dd93357ef2a2dd49fd40b
2014-12-16Don't wrap make-standalone-toolchain.sh's copy_* commands in run()Andrew Hsieh
Outputs of commands wrapped in run() can be suppressed if no --verbose is specified nor environment variable NDK_LOGFILE, including error messages caused by disk full. Run() is perfect in tracking toolchain build, but not for user-facing script like make-standalone-toolchain.sh BUG=18597324 Change-Id: I33d3a1496f44c768d2cc211ec4b18246d037bfbb
2014-12-16Enable indirect functions when building gcc.Alexander Ivchenko
This way we will not need any local patches for ifuncs when pulling gcc-5.x. Change-Id: I98bed3a405c8e72e734285e170801c05c42fc416 Signed-off-by: Alexander Ivchenko <alexander.ivchenko@intel.com>
2014-12-12Use default gcc to build platform libsAndrew Hsieh
Use GCC 4.8 (Current default) instead of the first GCC 4.6 which is deprecated. The only downside observed so far is inconsistent DIV Tag between A15 (via -mcpu=cortex-a15) object by GCC4.6/binutils-2.21 and crt*.o by GCC4.8/binutils-2.24. Change-Id: Ibc9db06a4bd8b1ae1d8a7d3846eb8c28c47ff4e7
2014-12-12Remove more bashismsAndrew Hsieh
Change-Id: Id8d211ae7ca41276ad0a3fbd0fd31097c0d6f7e3
2014-12-12Fix build libcompiler-rtAndrew Hsieh
1. corrected path of 2 files filtered out 2. Since now pattern contain two '/', fix filter_out to replace all '/' with '\/', not just the first Change-Id: I52d132074cce53ff1dc8289705ab56599e8118b5
2014-12-11Don't build libc++abi on unknown arch due to assembly file.WenHan Gu
Change-Id: If1523598f790f48d4352980bcbde71ccbe696748
2014-12-10Disable clang integrated-as for STLAndrew Hsieh
Turn off integrated-as by default for clang >= 3.5 due to ill-formed object it produces involving inline-assembly .pushsection/.popsection which crashes ld.gold Unless clang3.5 or above is used to compile compiler-rt BUG=18589643 Change-Id: I1fb62337dbbb11b458c633821bb615babddce26e
2014-12-09Add mipsr6Andrew Hsieh
This is internal-only ABI for -mips32r6 enough to generate mips32r6 STL libraries in prebuilts/ndk. "mips" (r1) remains the only supported 32-bit ABI for MIPS Change-Id: I2ede51fccd57680d1405749da80ad837e2816795
2014-12-09Force using unknown arch onto android-21.WenHan Gu
Change-Id: Ib7939450525986360cb45dc61afba592f2a748e1
2014-12-09Separate unknown arch options for llvm-3.4/3.5.WenHan Gu
Change-Id: Ia4a92eaa529a1bd9e58b07b097a9ab2f5e74c360
2014-12-09Simply inline __gnu_thumb1_case_* for armeabi* gnustl for unknown arch testing.WenHan Gu
This won't break correctness. Change-Id: Ie7c9c4707aa73f2da2f59f8ad0c695e4d05aad67
2014-12-09Update build-compiler-rt for llvm 3.5.WenHan Gu
Change-Id: Idf06ce5685bb3e14a5b532ade1d2d9026731fa2e
2014-12-09Add -emit-llvm for unknown arch while shared library generation.WenHan Gu
Change-Id: Ic93b532a3a20266f7fa94233b829072dedcfa969
2014-12-05misc fixes in r10dAndrew Hsieh
1. Remove hack for server where android-13,15,17 were missing 2. Remove --disable-libquadmath 3. Fixed build-gnu-libstdc++.sh thumb build where "-ffunction-sections -fdata-sections" were dropped 4. Fixed llvm clang3.5/windows build where mingw-64 complains about -fPIC 5. Fixed bashism in make-standalone-toolchain.sh 6. Fixed "package-release.sh --separate-64" 7. Relaxed patch-sources.sh against non-existance patch directory 8. Refresh build/tools/toolchain-patches/gcc/0010-Fix-PR-target-63209.patch 9. Fixed warning about unused vars in cpu-features.c 10. Fixed sources/android/support/Android.mk about -fvisibility-inlines-hidden is only foo C++ 11. Fixed tests/build/check-armeabi-v7a-prebuilts/build.sh on MacOSX 10.6.8 12. Fixed tests/build/issue64679-prctl/build.sh to include GLES2/gl2ext.h which can be compiled alone now 13. Excluded tests/device/b8708181-Vector4/jni/Vector4.cpp from clang3.4 14. Removed some comments in tests/device/test-libc++-*-full/jni/Android.mk 15. misc run-test.sh fixes 16. Disable integrated-as for clang in tests/build/issue79115-confusing-ld.gold-warning Change-Id: I0afb2c00642dd61d81fd4842532d1b3c4029655b
2014-12-05Rename version_is_greater_than() as version_is_at_least()Andrew Hsieh
The function actually perform larger-or-equal Also remove unused bh_version_is_greater_than() and dependencies Change-Id: I0dbb966acef8e72bd8fd9cffb1fb291e3331ba41
2014-12-05Refactor dereferencing windows symlinkAndrew Hsieh
Move to a new function dereference_symlink Change-Id: Id775d345639ecdf79ea5d3db07d1b3012fb26068
2014-12-05Fix clang with LOCAL_PCHAndrew Hsieh
Cherry-pick from https://code.google.com/p/android/issues/detail?id=25412#c19 by darkcube See b.android.com/77575 Change-Id: I6f0a324ec6dd5f70b6f2e8114f08014ba056e676
2014-12-02Set GCC 4.8 as the default for 32-bit ABIsAndrew Hsieh
Add get_first_gcc_version_for_arch and set to GCC 4.6 for 32-bit ABIs while it's still around (deprecated but will be removed in 1-2 release) Change-Id: I035c3b46ffb6c5aacf92893b920623acbae1719c
2014-11-19Merge "build/tools/builder-funcs.sh: Fix for Darwin"David 'Digit' Turner