File tree 1 file changed +15
-10
lines changed
1 file changed +15
-10
lines changed Original file line number Diff line number Diff line change @@ -1307,6 +1307,12 @@ CFG_LLVM_SRC_DIR=${CFG_SRC_DIR}src/llvm/
1307
1307
for t in $CFG_HOST
1308
1308
do
1309
1309
do_reconfigure=1
1310
+ is_msvc=0
1311
+ case " $t " in
1312
+ (* -msvc)
1313
+ is_msvc=1
1314
+ ;;
1315
+ esac
1310
1316
1311
1317
if [ -z $CFG_LLVM_ROOT ]
1312
1318
then
@@ -1326,7 +1332,13 @@ do
1326
1332
LLVM_ASSERTION_OPTS=" --disable-assertions"
1327
1333
else
1328
1334
LLVM_ASSERTION_OPTS=" --enable-assertions"
1329
- LLVM_INST_DIR=${LLVM_INST_DIR} +Asserts
1335
+
1336
+ # Apparently even if we request assertions be enabled for MSVC,
1337
+ # LLVM's CMake build system ignore this and outputs in `Release`
1338
+ # anyway.
1339
+ if [ ${is_msvc} -eq 0 ]; then
1340
+ LLVM_INST_DIR=${LLVM_INST_DIR} +Asserts
1341
+ fi
1330
1342
fi
1331
1343
else
1332
1344
msg " not reconfiguring LLVM, external LLVM root"
@@ -1356,14 +1368,7 @@ do
1356
1368
done
1357
1369
fi
1358
1370
1359
- use_cmake=0
1360
- case " $t " in
1361
- (* -msvc)
1362
- use_cmake=1
1363
- ;;
1364
- esac
1365
-
1366
- if [ ${do_reconfigure} -ne 0 ] && [ ${use_cmake} -ne 0 ]
1371
+ if [ ${do_reconfigure} -ne 0 ] && [ ${is_msvc} -ne 0 ]
1367
1372
then
1368
1373
msg " configuring LLVM for $t with cmake"
1369
1374
1388
1393
need_ok " LLVM cmake configure failed"
1389
1394
fi
1390
1395
1391
- if [ ${do_reconfigure} -ne 0 ] && [ ${use_cmake } -eq 0 ]
1396
+ if [ ${do_reconfigure} -ne 0 ] && [ ${is_msvc } -eq 0 ]
1392
1397
then
1393
1398
# LLVM's configure doesn't recognize the new Windows triples yet
1394
1399
gnu_t=$( to_gnu_triple $t )
You can’t perform that action at this time.
0 commit comments