-
Notifications
You must be signed in to change notification settings - Fork 319
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Making compliant with LLVM style, other minor changes.
- Loading branch information
Showing
6 changed files
with
106 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,18 @@ | ||
# These tests output numerical values to improve debuggability. | ||
# Setting FP_TOLERANCE causes the test checker to use fpcmp to compare | ||
# test and expected output. | ||
# Because the nonatomic output may vary wildly even in a passing run, | ||
# we set FP_TOLERANCE high so the test will never fail due to | ||
# differing numerical results. | ||
# The tests each have their own correctness checking and will fail | ||
# properly if something is actually wrong. | ||
set(FP_TOLERANCE 1000000) | ||
|
||
# Link the Clang built libatomic. | ||
execute_process(COMMAND ${CMAKE_C_COMPILER} --print-file-name=libclang_rt.atomic.so | ||
OUTPUT_VARIABLE _path_to_libatomic | ||
OUTPUT_STRIP_TRAILING_WHITESPACE) | ||
get_filename_component(_libatomic_dir ${_path_to_libatomic} DIRECTORY) | ||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${_path_to_libatomic} -Wl,-rpath=${_libatomic_dir}") | ||
add_link_options("LINKER:${_path_to_libatomic},-rpath=${_libatomic_dir}") | ||
|
||
llvm_singlesource() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.