Skip to content

Commit e42984e

Browse files
authored
Fix exporting CMake for darwin (#10865)
1 parent ec02f9b commit e42984e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

scripts/generate_dump.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,18 @@ fi
9696
python3 -c "import sys, string as s; v=sys.argv; p = v[1].replace('-', '_'); o, a = v[2].split('-'); print(s.Template(open('$TEMPLATE').read()).substitute(platform=p.upper(), arch=a, os=o.upper()))" $TARGET_PLATFORM $PLATFORM >$DUMP_EXPORT_PATH.params
9797
PARAMS=`cat $DUMP_EXPORT_PATH.params | $base64cmd`
9898

99+
if [[ $PLATFORM = darwin* ]] ; then
100+
export SDKROOT="SDKROOT"
101+
DOSSDK="-D OS_SDK=local"
102+
else
103+
DOSSDK=""
104+
fi
105+
99106
ARCADIA=`realpath .`
100107
python3 $ARCADIA/build/ymake_conf.py $ARCADIA release no --toolchain-params $PARAMS \
101108
-D NO_SVN_DEPENDS=yes -D REPORT_CONFIGURE_PROGRESS=yes -D EXPORT_CMAKE=yes -D TRAVERSE_RECURSE=yes -D TRAVERSE_RECURSE_FOR_TESTS=yes \
102109
-D BUILD_LANGUAGES=CPP -D EXPORTED_BUILD_SYSTEM_SOURCE_ROOT='${CMAKE_SOURCE_DIR}' -D EXPORTED_BUILD_SYSTEM_BUILD_ROOT='${CMAKE_BINARY_DIR}' \
103-
-D OPENSOURCE=yes -D OPENSOURCE_PROJECT=ydb -D HAVE_CUDA=no -D CUDA_VERSION=0.0 -D USE_PREBUILT_TOOLS=no >$DUMP_EXPORT_PATH
110+
-D OPENSOURCE=yes -D OPENSOURCE_PROJECT=ydb -D HAVE_CUDA=no -D CUDA_VERSION=0.0 -D USE_PREBUILT_TOOLS=no $DOSSDK >$DUMP_EXPORT_PATH
104111
# append new line
105112
echo >>$DUMP_EXPORT_PATH
106113

0 commit comments

Comments
 (0)