-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make build script portable on Mac OS #3493
Conversation
@sduzh Please add a issue.
|
thirdparty/build-thirdparty.sh
Outdated
@@ -295,7 +295,7 @@ build_gtest() { | |||
check_if_source_exist $GTEST_SOURCE | |||
|
|||
cd $TP_SOURCE_DIR/$GTEST_SOURCE | |||
mkdir build -p && cd build | |||
mkdir -p bld && cd bld |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think build
is easier to understand than bld
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Projects that support build by bazel
will contain a file named BUILD
. Since the filesystem of Mac OS is not
case sensitive, you cannot create a directory named build
for those projects.
double-conversion-3.1.1/BUILD
re2-2017-05-01/BUILD
protobuf-3.5.1/BUILD
gflags-2.2.0/BUILD
incubator-brpc-0.9.5/BUILD
brotli-1.0.7/BUILD
flatbuffers-1.10.0/BUILD
mysql-server-mysql-5.7.18/BUILD
cctz-2.3/BUILD
glog-0.4.0/BUILD
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks,I see.
Better to add comments about this reason. And is doris_build better?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
1. options of command `mkdir` and `cp` must be put before arguments on Mac OS. 2. directory name `build` is conflict with file `BUILD` on Mac OS.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, LGTM
mkdir
andcp
must be put before arguments on Mac OS.build
is conflict with fileBUILD
on Mac OS.