pitrou commented on issue #35870:
URL: https://github.com/apache/arrow/issues/35870#issuecomment-1575088163

   Same problem: it doesn't work.
   For example I pass `-DCMAKE_CXX_FLAGS_DEBUG="-Og"` and I get command lines 
such as:
   ```
   [68/764] ccache /home/antoine/mambaforge/envs/pyarrow/bin/g++ 
-DARROW_EXPORTING -DARROW_EXTRA_ERROR_CONTEXT -DARROW_HAVE_SSE4_2 -DARROW_HDFS 
-DARROW_MIMALLOC -DARROW_S3_HAS_CRT -DARROW_WITH_BACKTRACE -DARROW_WITH_BROTLI 
-DARROW_WITH_BZ2 -DARROW_WITH_LZ4 -DARROW_WITH_RE2 -DARROW_WITH_SNAPPY 
-DARROW_WITH_TIMING_TESTS -DARROW_WITH_UTF8PROC -DARROW_WITH_ZLIB 
-DARROW_WITH_ZSTD -DAWS_AUTH_USE_IMPORT_EXPORT -DAWS_CAL_USE_IMPORT_EXPORT 
-DAWS_CHECKSUMS_USE_IMPORT_EXPORT -DAWS_COMMON_USE_IMPORT_EXPORT 
-DAWS_COMPRESSION_USE_IMPORT_EXPORT -DAWS_CRT_CPP_USE_IMPORT_EXPORT 
-DAWS_EVENT_STREAM_USE_IMPORT_EXPORT -DAWS_HTTP_USE_IMPORT_EXPORT 
-DAWS_IO_USE_IMPORT_EXPORT -DAWS_MQTT_USE_IMPORT_EXPORT 
-DAWS_MQTT_WITH_WEBSOCKETS -DAWS_S3_USE_IMPORT_EXPORT 
-DAWS_SDKUTILS_USE_IMPORT_EXPORT -DAWS_SDK_VERSION_MAJOR=1 
-DAWS_SDK_VERSION_MINOR=11 -DAWS_SDK_VERSION_PATCH=68 -DAWS_USE_EPOLL 
-DURI_STATIC_BUILD -I/build/build-test/src -I/home/antoine/arrow/dev/cpp/src 
-I/home/antoine/arrow/dev/cpp/src/generated -isy
 stem /home/antoine/arrow/dev/cpp/thirdparty/flatbuffers/include -isystem 
/home/antoine/arrow/dev/cpp/thirdparty/hadoop/include -isystem 
/home/antoine/mambaforge/envs/pyarrow/include -isystem 
/build/build-test/jemalloc_ep-prefix/src -isystem 
/build/build-test/mimalloc_ep/src/mimalloc_ep/include/mimalloc-2.0 
-Wno-noexcept-type  -fdiagnostics-color=always -fuse-ld=gold  -Wall 
-Wno-conversion -Wno-sign-conversion -Wunused-result -Wdate-time 
-fno-semantic-interposition -msse4.2  -Og -Werror -O0 -ggdb -std=c++17 -fPIC 
-pthread -DS2N_KYBER512R3_AVX2_BMI2 -DS2N_STACKTRACE -DS2N_CPUID_AVAILABLE 
-DS2N_FEATURES_AVAILABLE -fPIC -DS2N_FALL_THROUGH_SUPPORTED 
-DS2N___RESTRICT__SUPPORTED -DS2N_MADVISE_SUPPORTED -DS2N_CLONE_SUPPORTED 
-DS2N_LIBCRYPTO_SUPPORTS_EVP_MD5_SHA1_HASH -DS2N_LIBCRYPTO_SUPPORTS_EVP_RC4 
-DS2N_LIBCRYPTO_SUPPORTS_EVP_MD_CTX_SET_PKEY_CTX -MD -MT 
src/arrow/CMakeFiles/arrow_objlib.dir/util/bitmap.cc.o -MF 
src/arrow/CMakeFiles/arrow_objlib.dir/util/bitmap.cc.o.d -o src/arrow/CMakeFil
 es/arrow_objlib.dir/util/bitmap.cc.o -c 
/home/antoine/arrow/dev/cpp/src/arrow/util/bitmap.cc
   ```
   
   Notice how `-O0` comes *after* `-Og` on the command line. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to