Commit Graph

317 Commits

Author SHA1 Message Date
saisoma123
0a8571da4e Fixed invalid escape characters. This makes the code more flake8 compliant. 2022-07-17 08:59:06 +02:00
saisoma123
afc77bf839 Added extra whitespace around operators. This will make code more flake8 compliant. 2022-07-17 08:59:06 +02:00
saisoma123
3feec559a9 Added new dependent arguments, specifically llvm_tar and llvm_binary as well as llvm_tar and llvm_url. I added these dependent arguments because they were listed as a rewrite step for the argument parser in the meta-issue list. Also, it wouldn't make sense to download both the LLVM binary and tar. I also added the tar and url dependency because there was a binary and url dependency. 2022-07-16 18:59:03 +02:00
Surya Somayyajula
39738dc98f Fixed argument nomenclature [skip-ci] (#10936) 2022-07-15 11:59:07 +02:00
saisoma123
a1a8a9d149 Fixed formatting and made new helper function for setting llvm_flags 2022-06-28 18:29:04 +02:00
saisoma123
f7fdcf6773 Formatting changes 2022-06-28 18:29:04 +02:00
saisoma123
476a7d13fa Forgot extra plus sign 2022-06-28 18:29:04 +02:00
saisoma123
13013617fe Added verbose flag to the llvm_flags variable, if the verbose option is called 2022-06-28 18:29:04 +02:00
saisoma123
f5402eefab Added verbose flag to the llvm_flags variable 2022-06-28 18:29:04 +02:00
saisoma123
cabadcf6f4 Edited verbose output flag 2022-06-28 18:29:04 +02:00
saisoma123
3bd9d02ab1 Added new starting point for cpt.py.
Added new main block because this was mentioned in the meta issue
list (#406 in cling) as one of the rewrite steps. This also allows for
the main code to be run as opposed to running the main code plus the
function defintions.
2022-06-28 18:29:04 +02:00
saisoma123
1fee0d4b10 This fixes the undefined llvm_flag error when the --last-stable option is called. I added a download_llvm_binary function call, which sets the llvm_flags. 2022-06-15 15:14:02 +02:00
saisoma123
717eea7c47 Added cmakeDir for Windows 2022-06-11 20:44:02 +02:00
Pratyush Das
2acd1d2776 Fix cpt for Cling build using LLVM 9
Only fixes builds from LLVM 9 source. Builds using an LLVM 9 binary
release is still broken.

Drop Ubuntu 16.04 Clang build, since Clang 3.8 is very old and causes
build failure.
2021-03-31 18:59:06 +02:00
Pratyush Das
2b222f35f5 Drop --compiler flag
Build compiler can be set using CMake flag
2021-03-18 23:29:07 +01:00
Pratyush Das
9e2c41e580 Update cpt shebang to reflect Python 3 requirement 2021-03-05 12:44:07 +01:00
Pratyush Das
960127f33a Drop Python 2 support
lit cannot be installed as a standalone package using pip on macOS when
using Python 2.
2021-02-16 22:29:03 +01:00
Pratyush Das
e978660f35 Remove dependence on svn
LLVM repository has migrated from svn to git
2021-02-16 22:29:03 +01:00
Pratyush Das
a2ed863649 Fix cloning a fresh cling
We need the cloned directory to always be named cling
2020-11-02 08:14:08 +01:00
Pratyush Das
cb6178da2b New flag --cling-branch to specify particular cling branch
Motivated by the need to clone the PR branch for CI in Github Actions.
The earlier "branch/branches" tag did not allow binaries to be created.
2020-11-02 08:14:08 +01:00
Axel Naumann
7e6762da4f Remove statement about "policy restrictions" wrt repos (NFC);
addresses https://github.com/root-project/cling/issues/307
2020-09-02 10:29:05 +02:00
Pratyush Das
74b99152db Fix llvm binary tarball requirement
Removed redundant is_llvm_binary_compatible() and fixed zlib prerequisite
2020-06-14 11:59:05 +02:00
Pratyush Das
be615cb351 Move declarations to fix faulty logic
llvm_vers variable required earlier for linux platform initialization
2020-06-10 12:44:04 +02:00
Pratyush Das
f8ccd27e67 Fix tar_required logic
If all requirements were satisfied, tar_required would always be false.
This commit fixes it.
2020-05-13 09:29:07 +02:00
Pratyush Das
87011bd783 Fix cmake requirement 2020-05-13 09:29:07 +02:00
Pratyush Das
98a1c4acad Fix svn installation 2020-05-13 09:29:07 +02:00
Pratyush Das
52f75d8768 Fix distro requirement (and installation of pip)
There might be an issue when using conda as default Python for Python3
because conda calls it pip but otherwise it is pip3.
2020-05-13 09:29:07 +02:00
Pratyush Das
82e662096c Enable tarball-tag flag to build cling using LLVM binary release.
Fixes Cling's nightly releases
2019-12-25 07:29:26 +01:00
Pratyush Das
8a64fb67e5 Cleanup 2019-12-23 06:44:30 +01:00
Pratyush Das
ba5b08c837 Fix warning - is keyword only applies to literals 2019-12-23 06:44:30 +01:00
Pratyush Das
334ac32e25 platform.linux_distribution is deprecated 2019-12-23 06:44:30 +01:00
Pratyush Das
4b928845e3 Refactor code in last_stable and current_dev 2019-12-23 06:44:30 +01:00
Pratyush Das
eec9a3559f Remove legacy code to build libcpp 2019-12-23 06:44:29 +01:00
Pratyush Das
0af62c625d Fix global namespace error on variable tar_required 2019-12-23 06:44:29 +01:00
Pratyush Das
20254e5926 Enable flag with-llvm-tar for OS X 2019-12-23 06:44:29 +01:00
Pratyush Das
ad0126f994 Fix lit.cfg for building from LLVM binary in OS X 2019-12-23 06:44:29 +01:00
Pratyush Das
e9f0bc3458 Build cling using LLVM packaged binary for OS X 2019-12-23 06:44:28 +01:00
Pratyush Das
f2ea3180f3 Force travis to use LLVM binary release tar 2019-12-23 06:44:28 +01:00
Pratyush Das
5bfb2b834d Cleanup 2019-12-23 06:44:28 +01:00
Pratyush Das
bc70947c9a Fix broken vanilla-cling tests.
Change condition of adding vanilla-cling, change directory locations for
downloaded binary release.
2019-12-23 06:44:28 +01:00
Pratyush Das
28c58fdf34 Add support to build Cling using LLVM from Distro's package manager. 2019-12-23 06:44:28 +01:00
Pratyush Das
5ebd9587dd Comply with new NVPTX update of Cling 2019-12-23 06:44:28 +01:00
Pratyush Das
21d3cd2d7c Enabled support to build Cling using downloaded LLVM release tar. 2019-12-23 06:44:27 +01:00
Pratyush Das
2796d6bf96 Proof of concept - Cling can be built using downloaded LLVM release tar. 2019-12-23 06:44:27 +01:00
Pratyush Das
495a667988 Removed redundant line 2019-12-23 06:44:27 +01:00
Simeon Ehrig
43d5583905 Add NVPTX backend to CPT 2019-11-07 19:29:15 +01:00
Pratyush Das
8482b60697 Only install necessary packages using cpt if missing requirements
and cleanup .travis.yml
2019-09-27 07:01:54 +02:00
Pratyush Das
3ed675ab01 pkg flag now defaults to tar
For non [Windows, Ubuntu, Redhat, OS X] operating systems the pkg flag to the --last stable and --current-dev arguments didn't do anything - It should create a tar because that is the default behaviour for Unix like platforms which support bash.
2019-09-26 07:29:39 +02:00
Axel Naumann
2c92b57062 Try to fix Issue #289, #302, #297: only build cling, not lli. 2019-09-18 08:44:45 +02:00
straydragon
adb1396e4f Fix cpt.py a careless mistake
Signed-off-by: Vassil Vassilev <v.g.vassilev@gmail.com>
2019-04-18 21:46:14 +02:00