Skip to content

Commit

Permalink
Adding -fno-exceptions to tests to conform with llvm#69669
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonRydahl committed Nov 2, 2023
1 parent e447107 commit d3da1ff
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

// UNSUPPORTED: c++03, c++11, c++14, gcc

// ADDITIONAL_COMPILE_FLAGS: -O2 -Wno-pass-failed -fopenmp --offload-arch=native
// ADDITIONAL_COMPILE_FLAGS: -O2 -Wno-pass-failed -fopenmp -fno-exceptions

// REQUIRES: openmp_pstl_backend

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

// UNSUPPORTED: c++03, c++11, c++14, gcc

// ADDITIONAL_COMPILE_FLAGS: -O2 -Wno-pass-failed -fopenmp --offload-arch=native
// ADDITIONAL_COMPILE_FLAGS: -O2 -Wno-pass-failed -fopenmp -fno-exceptions

// REQUIRES: openmp_pstl_backend

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

// UNSUPPORTED: c++03, c++11, c++14, gcc

// ADDITIONAL_COMPILE_FLAGS: -O2 -Wno-pass-failed -fopenmp
// ADDITIONAL_COMPILE_FLAGS: -O2 -Wno-pass-failed -fopenmp -fno-exceptions

// REQUIRES: openmp_pstl_backend

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

// UNSUPPORTED: c++03, c++11, c++14, gcc

// ADDITIONAL_COMPILE_FLAGS: -O2 -Wno-pass-failed -fopenmp --offload-arch=native
// ADDITIONAL_COMPILE_FLAGS: -O2 -Wno-pass-failed -fopenmp -fno-exceptions

// REQUIRES: openmp_pstl_backend

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

// UNSUPPORTED: c++03, c++11, c++14, gcc

// ADDITIONAL_COMPILE_FLAGS: -fopenmp --offload-arch=native
// ADDITIONAL_COMPILE_FLAGS: -O2 -Wno-pass-failed -fopenmp -fno-exceptions

// REQUIRES: openmp_pstl_backend

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

// UNSUPPORTED: c++03, c++11, c++14, gcc

// ADDITIONAL_COMPILE_FLAGS: -O2 -Wno-pass-failed -fopenmp --offload-arch=native
// ADDITIONAL_COMPILE_FLAGS: -O2 -Wno-pass-failed -fopenmp -fno-exceptions

// REQUIRES: openmp_pstl_backend

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

// UNSUPPORTED: c++03, c++11, c++14, gcc

// ADDITIONAL_COMPILE_FLAGS: -O2 -Wno-pass-failed -fopenmp
// ADDITIONAL_COMPILE_FLAGS: -O2 -Wno-pass-failed -fopenmp -fno-exceptions

// REQUIRES: openmp_pstl_backend

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

// UNSUPPORTED: c++03, c++11, c++14, gcc

// ADDITIONAL_COMPILE_FLAGS: -O2 -Wno-pass-failed -fopenmp
// ADDITIONAL_COMPILE_FLAGS: -O2 -Wno-pass-failed -fopenmp -fno-exceptions

// REQUIRES: openmp_pstl_backend

Expand Down
4 changes: 4 additions & 0 deletions libcxx/utils/libcxx/test/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,10 @@ def getStdFlag(cfg, std):
AddLinkFlag("-Wl,-rpath,%{lib}/../../lib"),
AddLinkFlag("-L%{lib}/../../lib"),
# The preprocessor needs to find the omp.h header
# If OpenMP was installed as a project, the header lives in the
# following directory
AddFlag("-I %{lib}/../../projects/openmp/runtime/src/"),
# And if it was installed as a runtime it lives in
AddFlag("-I %{lib}/../../runtimes/runtimes-bins/openmp/runtime/src"),
# If the OpenMP PSTL backend was enbaled, we wish to run the tests for it
AddFeature("openmp_pstl_backend")
Expand Down

0 comments on commit d3da1ff

Please sign in to comment.