Open typesanitizer opened 3 years ago
Issue Description:
I tried 3 builds, and for each build, I checked the compilation command for SILVerifier.cpp in compile_commands.json.
SILVerifier.cpp
compile_commands.json
1. build-script --release --no-assertions <other flags>: preprocessor flags -DGTEST_HAS_RTTI=0 -DNDEBUG -D__STDC_CONSTANT_MACROS.
build-script --release --no-assertions <other flags>
-DGTEST_HAS_RTTI=0 -DNDEBUG -D__STDC_CONSTANT_MACROS
build-script --release --no-llvm-assertions <other flags>
build-script --release <other flags>
-DGTEST_HAS_RTTI=0 -DSWIFT_ENABLE_RUNTIME_FUNCTION_COUNTERS -D_DEBUG -D__STDC_CONSTANT_MACROS
I think the second one is incorrect; like the third case, it should not be passing -DNDEBUG when building the Swift compiler.
-DNDEBUG
@swift-ci create
PR: https://github.com/apple/swift/pull/35115
Additional Detail from JIRA
| | | |------------------|-----------------| |Votes | 0 | |Component/s | Project Infrastructure | |Labels | Bug | |Assignee | @typesanitizer | |Priority | Medium | md5: e134a3763af24d57d0b69909f6a1e63dIssue Description:
I tried 3 builds, and for each build, I checked the compilation command for
SILVerifier.cpp
incompile_commands.json
.1.
build-script --release --no-assertions <other flags>
: preprocessor flags-DGTEST_HAS_RTTI=0 -DNDEBUG -D__STDC_CONSTANT_MACROS
.build-script --release --no-llvm-assertions <other flags>
: preprocessor flags-DGTEST_HAS_RTTI=0 -DNDEBUG -D__STDC_CONSTANT_MACROS
.build-script --release <other flags>
: preprocessor flags-DGTEST_HAS_RTTI=0 -DSWIFT_ENABLE_RUNTIME_FUNCTION_COUNTERS -D_DEBUG -D__STDC_CONSTANT_MACROS
.I think the second one is incorrect; like the third case, it should not be passing
-DNDEBUG
when building the Swift compiler.