================
@@ -1,47 +1,34 @@
 set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
-add_library(FortranEvaluateTesting
----------------
jeanPerier wrote:

I am hitting the following error with my build: `g++: error: unrecognized 
command line option ‘--offload-arch=native’` at the build step that is linking.

```
[2336/2919] Linking CXX executable 
tools/flang/unittests/Evaluate/leading-zero-bit-count.test
FAILED: tools/flang/unittests/Evaluate/leading-zero-bit-count.test
: && g++ -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden 
-Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter 
-Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic 
-Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull 
-Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move 
-Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment 
-Wno-misleading-indentation -fdiagnostics-color -ffunction-sections 
-fdata-sections -Wno-deprecated-copy -Wno-ctad-maybe-unsupported 
-fno-strict-aliasing -fno-semantic-interposition -O3 -DNDEBUG -static-libgcc 
-static-libstdc++ -static-libstdc++ -fuse-ld=lld -Wl,--color-diagnostics    
-fopenmp --offload-arch=native 
tools/flang/unittests/Evaluate/CMakeFiles/leading-zero-bit-count.test.dir/leading-zero-bit-count.cpp.o
 -o tools/flang/unittests/Evaluate/leading-zero-bit-count.test  
lib/libLLVMSupport.a  lib/libNonGTestTesting.a  lib/libLLVMSupport.a  -lrt  
-ldl  -lpthread  -lm  /usr/lib64/libz.so  /usr/lib64/libzstd.so  
lib/libLLVMDemangle.a && :
g++: error: unrecognized command line option ‘--offload-arch=native’
```

```
cmake   -G Ninja  \
 -DCMAKE_C_COMPILER=gcc  \
 -DCMAKE_CXX_COMPILER=g++ \
 -DLLVM_TARGETS_TO_BUILD="host" \
 -DCMAKE_BUILD_TYPE=Release   \
 -DLLVM_ENABLE_PROJECTS="clang;mlir;flang;openmp"
```

Building with gcc 9.3 on linux x86-64.

I am seeing the error building from the top patch of the stack (#121782), but I 
suspect this has to do with this change.

https://github.com/llvm/llvm-project/pull/122334
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to