forked from apache/trafficserver
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'asf/master'
* asf/master: (90 commits) doc: fix the internal libraries section formatting (apache#9879) Add max thread count options to CMake build (apache#9883) Add yaml libs reference to HTTP proxy test suite. Closes apache#9882 (apache#9885) Add transparent proxy support to CMake build (apache#9884) Check for symbol IP_TOS in CMake build (apache#9870) RAT license fix: renamed_records.out -> .gold (apache#9876) Add traffic_wccp to CMake build (apache#9867) cleanup cast warning with reinterpret_cast (apache#9866) Fixes Coverity 1513058, introduced with apache#9643 (apache#9860) add some missing libs for clang (apache#9865) Add support for libunwind in CMake build (apache#9862) Add option to build regression tests (apache#9863) Fix crash on config reload with BoringSSL (apache#9840) Check for SO_PEERCRED in CMake build (apache#9855) Check for SO_MARK in CMake build (apache#9854) Clean up UnixNetProcessor entanglements. (apache#9825) Remove unneeded DEBUG conditionals. (apache#9849) Add option to enable fast SDK in CMake build (apache#9853) Add support for POSIX Cap in CMake build (apache#9852) WCCP: remove ts::Buffer (apache#9824) ...
- Loading branch information
Showing
262 changed files
with
5,722 additions
and
4,143 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
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
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 |
---|---|---|
@@ -0,0 +1,60 @@ | ||
####################### | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor license | ||
# agreements. See the NOTICE file distributed with this work for additional information regarding | ||
# copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 | ||
# (the "License"); you may not use this file except in compliance with the License. You may obtain | ||
# a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software distributed under the License | ||
# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express | ||
# or implied. See the License for the specific language governing permissions and limitations under | ||
# the License. | ||
# | ||
####################### | ||
|
||
# Check128BitCas.cmake | ||
# | ||
# This will define the following variables | ||
# | ||
# TS_HAS_128BIT_CAS | ||
# TS_NEEDS_MCX16_FOR_CAS | ||
# | ||
|
||
set(CHECK_PROGRAM | ||
" | ||
int | ||
main() | ||
{ | ||
__int128_t x = 0; | ||
__sync_bool_compare_and_swap(&x,0,10); | ||
return 0; | ||
} | ||
" | ||
) | ||
|
||
include(CheckCSourceCompiles) | ||
check_c_source_compiles("${CHECK_PROGRAM}" TS_HAS_128BIT_CAS) | ||
|
||
if(NOT TS_HAS_128BIT_CAS) | ||
unset(TS_HAS_128BIT_CAS CACHE) | ||
set(CMAKE_REQUIRED_FLAGS "-Werror" "-mcx16") | ||
check_c_source_compiles("${CHECK_PROGRAM}" TS_HAS_128BIT_CAS) | ||
set(NEED_MCX16 ${TS_HAS_128BIT_CAS}) | ||
unset(CMAKE_REQUIRED_FLAGS) | ||
endif() | ||
|
||
set(TS_NEEDS_MCX16_FOR_CAS | ||
${NEED_MCX16} | ||
CACHE | ||
BOOL | ||
"Whether -mcx16 is needed to compile CAS" | ||
) | ||
|
||
unset(CHECK_PROGRAM) | ||
unset(NEEDS_MCX16) | ||
|
||
mark_as_advanced(TS_HAS_128BIT_CAS TS_NEEDS_MCX16_FOR_CAS) |
Oops, something went wrong.