Displaying 20 results from an estimated 61 matches for "strequal".
2015 May 05
2
[LLVMdev] enabling openmp cmake build in llvm tree
...p-dev/2015-April/000502.html
--- llvm-3.7.0.src/projects/CMakeLists.txt.orig 2015-04-26
19:10:12.000000000 -0400
+++ llvm-3.7.0.src/projects/CMakeLists.txt 2015-04-28
21:14:59.000000000 -0400
@@ -6,6 +6,7 @@
if(IS_DIRECTORY ${entry} AND EXISTS ${entry}/CMakeLists.txt)
if((NOT ${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/compiler-rt) AND
(NOT ${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/dragonegg) AND
+ (NOT ${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/openmp) AND
(NOT ${entry} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}/libcxx) AND
(NOT ${entry} STREQUAL ${CMAKE...
2010 Feb 15
1
[LLVMdev] Broken CMake file?
...h Clang, and after getting the
last svn version, I got this error during cmake:
CMake Error: Error in cmake code at
<dir>/llvm/projects/CMakeLists.txt:7:
Parse error. Function missing ending ")". Instead found left paren with
text "(".
The line is "if(NOT (${entry} STREQUAL
${CMAKE_CURRENT_SOURCE_DIR}/compiler-rt))". I really don't know anything
about CMake, but when changed the line to "if(NOT ${entry} STREQUAL
${CMAKE_CURRENT_SOURCE_DIR}/compiler-rt)", it passed without error. I don't
know if this is the right way to do this or maybe it's...
1998 Apr 15
1
Code Page Problem with samba 1.9.18p4?
I am running samba version 1.9.18p4 on a sinix machine (unix svr4).
My NT workstations use the german code page 850.
In earlier versions of samba (1.9.17p2) the character mapping worked
just fine, using
character set = iso8859-1
client code page = 850
in my smb.conf.
Since upgrading to samba 1.9.18p4 this don't work any more.
Is this a known problem?
I tripple-checked my smb.conf entries,
1998 Apr 18
1
1.9.18p4 broke charset latin1
Hi!
updated to p4 the other day, and now the "character set = iso8859-1"
option doesn't work anymore. I didn't change anything in the smb.conf
file but this:
unix password sync = True
time server = yes
and it worked in 1.9.18p3 :/
Has anyone else seen this?
Samba runs on FreeBSD 2.2.6 from the ports collection. (I don't think
that password sync works for this
2001 Mar 12
0
Hebrew codepage conversion
...\357\217");
+update_map("\360\220\361\221\362\222\363\223\364\224\365\225\366\226\367\227");
+update_map("\370\230\371\231\372\232");
+}
+
/* Init for russian language (koi8) */
static void init_koi8_r(void)
@@ -273,6 +287,8 @@
init_iso8859_5();
} else if (strequal (str, "iso8859-7")) {
init_iso8859_7();
+ } else if (strequal (str, "iso8859-8")) {
+ init_iso8859_8();
} else if (strequal (str, "koi8-r")) {
init_koi8_r();
} else if (strequal (str, "roman8")) {
2020 May 21
5
Understanding the version handling in LLVM/Clang/LLD
..., I looked into master Git where I saw:
if(NOT DEFINED LLVM_VERSION_SUFFIX)
set(LLVM_VERSION_SUFFIX "git")
endif()
And re-checked every place where especially...
${LLVM_VERSION_MAJOR}${LLVM_VERSION_SUFFIX}
...is used.
So, I fixed it up by pre-checking for... if(LLVM_VERSION_SUFFIX STREQUAL "git")
Example (full patch attached):
[ llvm/cmake/modules/AddLLVM.cmake ]
@@ -541,11 +541,18 @@ function(llvm_add_library name)
# Set SOVERSION on shared libraries that lack explicit SONAME
# specifier, on *nix systems that are not Darwin.
if(UNIX AND NOT APPLE AND NOT...
2016 May 03
4
Linux/ARM: Segfault issue when we build clang sources including __thread variable using -O2 flag
...verride.txt
@@ -1,13 +1,22 @@
SET (CMAKE_C_FLAGS_INIT "-Wall -std=c11")
SET (CMAKE_C_FLAGS_DEBUG_INIT "-g -O0")
SET (CLR_C_FLAGS_CHECKED_INIT "-g -O2")
-SET (CMAKE_C_FLAGS_RELEASE_INIT "-g -O3")
+if(CMAKE_SYSTEM_NAME STREQUAL Linux AND CMAKE_SYSTEM_PROCESSOR STREQUAL armv7l)
+ SET (CMAKE_C_FLAGS_RELEASE_INIT "-g0 -O1")
+else()
+ SET (CMAKE_C_FLAGS_RELEASE_INIT "-g0 -O3")
+ message(FATAL_ERROR "RELEASE... c flag no-arm")
+endif()
SET (CMAKE_C_FLAGS_RELWITHDEBINFO_INIT...
2017 Oct 04
3
Question: Should we consider valid a variable defined #ifndef NDEBUG scope and used in assert?
.../IR/ValueHandle.h for the variable Poisoned line 494
This works because when we build LLVM with assert we explicitly disable NDEBUG:
if( LLVM_ENABLE_ASSERTIONS )
[…]
# On non-Debug builds cmake automatically defines NDEBUG, so we
# explicitly undefine it:
if( NOT uppercase_CMAKE_BUILD_TYPE STREQUAL "DEBUG" )
add_definitions( -UNDEBUG )
If we use this header in a different project and thus, with potentially different rules for macro definitions, the compiler complains with
error: use of undeclared identifier ‘Poisoned'
I think the right thing to do is to fix the code to w...
2000 Apr 03
1
2.0.7pre3: smbclient issues
My systems: rh61, 2.2.14 + smbfs-nls.patch.
I refer to 2.0.7pre3 as 2.0.7
=== 1) "ls" of an empty dir
1a)
1.9.18 doing "ls" to an empty samba dir:
smb: \> ls
49550 blocks of size 16384. 33754 blocks available
1b)
2.0.7 doing "ls" to an empty samba dir:
smb: \> ls
ERRDOS - ERRbadfile (File not found.) listing \* <=======
2004 May 26
2
duplicate domains in browse list
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
i recently upgraded some of my servers from 3.0.2a to 3.0.4
after the upgrade my browselist shows duplicate entries for the domains.
one domains is managed by a samba PDC(providing WINS too) and two samba
BDC's.
the other domains are managed by one samba PDC.
'smbclient -N -L <WINS_SERVER>' shows:
- ---
Workgroup
2001 Mar 28
1
UTF-8 patch for Samba 2.0.7
...str,cvtbuf));
+ if(overwrite){
+ olen=strlen(cvtbuf);
+ if(olen>=sizeof(pstring)) olen=sizeof(pstring)-1;
+ strncpy(str,cvtbuf,olen);
+ str[olen]='\0';
+ }
+ return cvtbuf;
}
@@ -265,21 +81,16 @@
*/
void interpret_character_set(char *str, int codepage)
{
- if (strequal (str, "iso8859-1")) {
- init_iso8859_1(codepage);
- } else if (strequal (str, "iso8859-2")) {
- init_iso8859_2();
- } else if (strequal (str, "iso8859-5")) {
- init_iso8859_5();
- } else if (strequal (str, "iso8859-7")) {
-...
2016 Feb 06
2
D16945: LLVM overhaul to avoid linking LLVM component libraries with libLLVM
...NENTS out of link_components.
# To do this, we need special handling for "all", since that
# may imply linking to libraries that are not included in
# libLLVM.
+ if (DEFINED link_components AND DEFINED LLVM_DYLIB_COMPONENTS)
+ if("${LLVM_DYLIB_COMPONENTS}" STREQUAL "all")
+ set(link_components "")
+ else()
+ list(REMOVE_ITEM link_components ${LLVM_DYLIB_COMPONENTS})
+ endif()
+ endif()
target_link_libraries(${executable} LLVM)
endif()
However the avoiding the accidental linkage of libLLVMSupport with
lib...
2016 Feb 09
2
D16945: LLVM overhaul to avoid linking LLVM component libraries with libLLVM
...;t suffice to determine if a
# property has been set to an empty value.
- get_property(lib_deps GLOBAL PROPERTY LLVMBUILD_LIB_DEPS_${name})
-
- if (LLVM_LINK_LLVM_DYLIB AND NOT ARG_STATIC AND NOT
ARG_DISABLE_LLVM_LINK_LLVM_DYLIB)
- set(llvm_libs LLVM)
+ if (LLVM_LINK_LLVM_DYLIB AND ${name} STREQUAL gtest)
+ set_property(GLOBAL PROPERTY LLVMBUILD_LIB_DEPS_gtest LLVM)
else()
- llvm_map_components_to_libnames(llvm_libs
- ${ARG_LINK_COMPONENTS}
- ${LLVM_LINK_COMPONENTS}
- )
+ get_property(lib_deps GLOBAL PROPERTY LLVMBUILD_LIB_DEPS_${name})
endif()
+ if (DEFINED LL...
2014 Jun 13
2
[LLVMdev] LLVMgold.so in windows LLVM builds
I am trying to build LLVMgold.so on windows.
I came across this piece of code which includes gold source directory in
tools/CMakeLists.txt
if( LLVM_ENABLE_PIC )
# TODO: support other systems:
if( (CMAKE_SYSTEM_NAME STREQUAL "Linux")
OR (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") )
add_llvm_tool_subdirectory(gold)
else()
ignore_llvm_tool_subdirectory(gold)
endif()
else()
ignore_llvm_tool_subdirectory(gold)
endif()
This basically says, I cannot build LLVMgold.so on windows.
Any specific reasons for why...
2000 Jan 04
0
two-level getgrent bug in samba-2.0.6 (PATCH#11)
...ving revision 1.110.2.25
diff -u -r1.110.2.25 password.c
--- password.c 1999/12/10 00:50:01 1.110.2.25
+++ password.c 2000/01/04 00:47:35
@@ -618,24 +618,61 @@
#ifdef HAVE_GETGRENT
{
struct group *gptr;
- char **member;
setgrent();
while ((gptr = (struct group *)getgrent())) {
- if (!strequal(gptr->gr_name,group))
- continue;
- member = gptr->gr_mem;
- while (member && *member) {
+ if (strequal(gptr->gr_name,group))
+ break;
+ }
+
+ /*
+ * As user_ok can recurse doing a getgrent(), we must
+ * copy the member list into a pstring on the stack before
+...
2018 Jan 25
1
[RFC] Handling cmake policies
...e first command in each of our CMakeLists.txt project
files.
In order to solve this problem, as well as improve maintainability, I'd
like to propose the following:
* For all projects except llvm, move `cmake_minimum_required()` inside the
standalone build if-branch, i.e., `if(CMAKE_SOURCE_DIR STREQUAL
CMAKE_CURRENT_SOURCE_DIR)`, at the top of the CMakeLists.txt project file.
This will prevent unnecessary calls `cmake_minimum_required()` for in-tree
builds, and allow all sub-projects to use the same policies set by llvm.
* Move all `cmake_policy()` commands out of llvm/CMakeLists.txt and into a...
2017 Nov 25
2
PSA: debuginfo-tests workflow changing slightly
...polly")
+set(LLVM_ALL_PROJECTS
"clang;libcxx;libcxxabi;lldb;compiler-rt;lld;polly,debuginfo-tests")
set(LLVM_ENABLE_PROJECTS "" CACHE STRING
"Semicolon-separated list of projects to build
(${LLVM_ALL_PROJECTS}), or \"all\".")
if( LLVM_ENABLE_PROJECTS STREQUAL "all" )
@@ -885,13 +885,16 @@ if( LLVM_INCLUDE_EXAMPLES )
endif()
if( LLVM_INCLUDE_TESTS )
- if(EXISTS ${LLVM_MAIN_SRC_DIR}/projects/test-suite AND TARGET clang)
- include(LLVMExternalProjectUtils)
- llvm_ExternalProject_Add(test-suite
${LLVM_MAIN_SRC_DIR}/projects/test-suite
-...
2017 Oct 04
2
Question: Should we consider valid a variable defined #ifndef NDEBUG scope and used in assert?
...Poisoned line 494
>
> This works because when we build LLVM with assert we explicitly disable NDEBUG:
> if( LLVM_ENABLE_ASSERTIONS )
> […]
> # On non-Debug builds cmake automatically defines NDEBUG, so we
> # explicitly undefine it:
> if( NOT uppercase_CMAKE_BUILD_TYPE STREQUAL "DEBUG" )
> add_definitions( -UNDEBUG )
>
> If we use this header in a different project and thus, with potentially different rules for macro definitions, the compiler complains with
> error: use of undeclared identifier ‘Poisoned'
>
> I think the right thing...
2017 Dec 06
3
PSA: debuginfo-tests workflow changing slightly
...PROJECTS "clang;libcxx;libcxxabi;lldb;compiler-rt;lld;polly,debuginfo-tests")
>> set(LLVM_ENABLE_PROJECTS "" CACHE STRING
>> "Semicolon-separated list of projects to build (${LLVM_ALL_PROJECTS}), or \"all\".")
>> if( LLVM_ENABLE_PROJECTS STREQUAL "all" )
>> @@ -885,13 +885,16 @@ if( LLVM_INCLUDE_EXAMPLES )
>> endif()
>>
>> if( LLVM_INCLUDE_TESTS )
>> - if(EXISTS ${LLVM_MAIN_SRC_DIR}/projects/test-suite AND TARGET clang)
>> - include(LLVMExternalProjectUtils)
>> - llvm_ExternalPr...
2016 Mar 14
3
clang triple and clang target
On Sat, Mar 12, 2016 at 2:38 PM, Tim Northover <t.p.northover at gmail.com>
wrote:
> On 12 March 2016 at 11:51, Rail Shafigulin via llvm-dev
> <llvm-dev at lists.llvm.org> wrote:
> > I tried every possible combination of --target I could think of but
> nothing
> > worked. Would you mind helping me out?
>
> First, 64-bit x86 is "x86_64", and 32-bit