Skip to content

Commit

Permalink
Change the default value of cmake option DEPS_FETCH_PROXY (apache#1900)
Browse files Browse the repository at this point in the history
  • Loading branch information
git-hulk authored and p1u3o committed Nov 20, 2023
1 parent 8e6ea24 commit 58627b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def build(dir: str, jobs: Optional[int], ghproxy: bool, ninja: bool, unittest: b

cmake_options = ["-DCMAKE_BUILD_TYPE=RelWithDebInfo"]
if ghproxy:
cmake_options.append("-DDEPS_FETCH_PROXY=https://ghproxy.com/")
cmake_options.append("-DDEPS_FETCH_PROXY=https://mirror.ghproxy.com/")
if ninja:
cmake_options.append("-G Ninja")
if compiler == 'gcc':
Expand Down Expand Up @@ -356,7 +356,7 @@ def test_go(dir: str, cli_path: str, rest: List[str]) -> None:
help="directory to store cmake-generated and build files")
parser_build.add_argument('-j', '--jobs', metavar='N', help='execute N build jobs concurrently')
parser_build.add_argument('--ghproxy', default=False, action='store_true',
help='use https://ghproxy.com to fetch dependencies')
help='use https://mirror.ghproxy.com to fetch dependencies')
parser_build.add_argument('--ninja', default=False, action='store_true', help='use Ninja to build kvrocks')
parser_build.add_argument('--unittest', default=False, action='store_true', help='build unittest target')
parser_build.add_argument('--compiler', default='auto', choices=('auto', 'gcc', 'clang'),
Expand Down

0 comments on commit 58627b0

Please sign in to comment.