-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
72 changed files
with
34,869 additions
and
146 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,6 +1,6 @@ | ||
name: Build and test | ||
|
||
on: [push, pull_request] | ||
on: {push: { branches: [main] }, pull_request: {}} | ||
|
||
jobs: | ||
build: | ||
|
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 |
---|---|---|
@@ -1,13 +1,14 @@ | ||
Push new release branch: | ||
1. make sure branches 'main' and 'release' are synced up locally | ||
1. make sure branches 'main' and 'release' are synced up locally, check out main | ||
2. update kDemumbleVersion in demumble.cc with new version (with ".git"), then | ||
git commit -am 'mark this 1.0.0.git' | ||
3. git checkout release; git merge main | ||
4. fix version number in src/version.cc (it will conflict in the above) | ||
5. commit, tag, push (don't forget to push --tags), build binaries | ||
# on the 'release' branch | ||
git commit -am v1.0.0; git push origin release | ||
git tag v1.0.0; git push --tags | ||
./dist.py # on the 'release' branch | ||
./dist.py | ||
# Push the 1.0.0.git change on main too: | ||
git checkout main; git push origin main | ||
6. add demumble-{linux,mac,win}.zip to https://github.com/nico/demumble/releases |
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,84 @@ | ||
#!/bin/bash | ||
|
||
# Swift's demangler is much less hermetic than LLVM's. This copies all the | ||
# code needed by Swift's demangler into this repository. | ||
|
||
set -eu | ||
|
||
# Adopt these three to match your local swift checkout and your local | ||
# llvm checkout and build dir: | ||
|
||
LLVM_SRC=$HOME/src/llvm-project/llvm | ||
SWIFT_SRC=$HOME/src/swift | ||
LLVM_HEADER_GEN_SRC=$HOME/src/llvm-project/out/gn/gen/llvm/include/llvm | ||
|
||
# The rest only needs updating if the set of needed files changes: | ||
|
||
cd "$(dirname "$0")"/.. | ||
|
||
LLVM_INC_SRC=$LLVM_SRC/include/llvm | ||
LLVM_DST=third_party/llvm | ||
LLVM_INC_DST=$LLVM_DST/include/llvm | ||
|
||
SWIFT_INC_SRC=$SWIFT_SRC/include/swift | ||
SWIFT_DST=third_party/swift | ||
SWIFT_INC_DST=$SWIFT_DST/include/swift | ||
|
||
rm -rf $LLVM_INC_DST/ADT | ||
rm -rf $LLVM_INC_DST/Config | ||
rm -rf $LLVM_INC_DST/Support | ||
rm -rf $LLVM_DST/include/llvm-c | ||
rm -rf $SWIFT_DST | ||
|
||
mkdir -p $LLVM_INC_DST/ADT | ||
cp "$LLVM_INC_SRC"/ADT/ADL.h $LLVM_INC_DST/ADT | ||
cp "$LLVM_INC_SRC"/ADT/DenseMapInfo.h $LLVM_INC_DST/ADT | ||
cp "$LLVM_INC_SRC"/ADT/Hashing.h $LLVM_INC_DST/ADT | ||
cp "$LLVM_INC_SRC"/ADT/STLExtras.h $LLVM_INC_DST/ADT | ||
cp "$LLVM_INC_SRC"/ADT/STLForwardCompat.h $LLVM_INC_DST/ADT | ||
cp "$LLVM_INC_SRC"/ADT/STLFunctionalExtras.h $LLVM_INC_DST/ADT | ||
cp "$LLVM_INC_SRC"/ADT/StringRef.h $LLVM_INC_DST/ADT | ||
cp "$LLVM_INC_SRC"/ADT/StringSwitch.h $LLVM_INC_DST/ADT | ||
cp "$LLVM_INC_SRC"/ADT/bit.h $LLVM_INC_DST/ADT | ||
cp "$LLVM_INC_SRC"/ADT/iterator.h $LLVM_INC_DST/ADT | ||
cp "$LLVM_INC_SRC"/ADT/iterator_range.h $LLVM_INC_DST/ADT | ||
|
||
mkdir -p $LLVM_INC_DST/Config | ||
cp "$LLVM_HEADER_GEN_SRC"/Config/abi-breaking.h $LLVM_INC_DST/Config | ||
cp "$LLVM_HEADER_GEN_SRC"/Config/llvm-config.h $LLVM_INC_DST/Config | ||
|
||
mkdir -p $LLVM_INC_DST/Support | ||
cp "$LLVM_INC_SRC"/Support/Casting.h $LLVM_INC_DST/Support | ||
cp "$LLVM_INC_SRC"/Support/Compiler.h $LLVM_INC_DST/Support | ||
cp "$LLVM_INC_SRC"/Support/DataTypes.h $LLVM_INC_DST/Support | ||
cp "$LLVM_INC_SRC"/Support/ErrorHandling.h $LLVM_INC_DST/Support | ||
cp "$LLVM_INC_SRC"/Support/SwapByteOrder.h $LLVM_INC_DST/Support | ||
cp "$LLVM_INC_SRC"/Support/type_traits.h $LLVM_INC_DST/Support | ||
|
||
mkdir -p $LLVM_DST/include/llvm-c | ||
cp "$LLVM_SRC"/include/llvm-c/DataTypes.h $LLVM_DST/include/llvm-c | ||
|
||
mkdir -p $SWIFT_DST | ||
cp "$SWIFT_SRC"/LICENSE.txt $SWIFT_DST | ||
|
||
mkdir -p $SWIFT_INC_DST | ||
cp -R "$SWIFT_INC_SRC"/Demangling $SWIFT_INC_DST | ||
cp "$SWIFT_INC_SRC"/Strings.h $SWIFT_INC_DST | ||
|
||
mkdir -p $SWIFT_INC_DST/ABI | ||
cp "$SWIFT_INC_SRC"/ABI/InvertibleProtocols.def $SWIFT_INC_DST/ABI | ||
|
||
mkdir -p $SWIFT_INC_DST/AST | ||
cp "$SWIFT_INC_SRC"/AST/Ownership.h $SWIFT_INC_DST/AST | ||
cp "$SWIFT_INC_SRC"/AST/ReferenceStorage.def $SWIFT_INC_DST/AST | ||
|
||
mkdir -p $SWIFT_INC_DST/Basic | ||
cp "$SWIFT_INC_SRC"/Basic/Assertions.h $SWIFT_INC_DST/Basic | ||
cp "$SWIFT_INC_SRC"/Basic/InlineBitfield.h $SWIFT_INC_DST/Basic | ||
cp "$SWIFT_INC_SRC"/Basic/LLVM.h $SWIFT_INC_DST/Basic | ||
cp "$SWIFT_INC_SRC"/Basic/MacroRoles.def $SWIFT_INC_DST/Basic | ||
cp "$SWIFT_INC_SRC"/Basic/STLExtras.h $SWIFT_INC_DST/Basic | ||
|
||
mkdir -p $SWIFT_DST/lib | ||
cp -R "$SWIFT_SRC"/lib/Demangling $SWIFT_DST/lib | ||
rm $SWIFT_DST/lib/Demangling/CMakeLists.txt |
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,80 @@ | ||
/*===-- include/llvm-c/DataTypes.h - Define fixed size types ------*- C -*-===*\ | ||
|* *| | ||
|* Part of the LLVM Project, under the Apache License v2.0 with LLVM *| | ||
|* Exceptions. *| | ||
|* See https://llvm.org/LICENSE.txt for license information. *| | ||
|* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception *| | ||
|* *| | ||
|*===----------------------------------------------------------------------===*| | ||
|* *| | ||
|* This file contains definitions to figure out the size of _HOST_ data types.*| | ||
|* This file is important because different host OS's define different macros,*| | ||
|* which makes portability tough. This file exports the following *| | ||
|* definitions: *| | ||
|* *| | ||
|* [u]int(32|64)_t : typedefs for signed and unsigned 32/64 bit system types*| | ||
|* [U]INT(8|16|32|64)_(MIN|MAX) : Constants for the min and max values. *| | ||
|* *| | ||
|* No library is required when using these functions. *| | ||
|* *| | ||
|*===----------------------------------------------------------------------===*/ | ||
|
||
/* Please leave this file C-compatible. */ | ||
|
||
#ifndef LLVM_C_DATATYPES_H | ||
#define LLVM_C_DATATYPES_H | ||
|
||
#include <inttypes.h> | ||
#include <stdint.h> | ||
|
||
#ifndef _MSC_VER | ||
|
||
#if !defined(UINT32_MAX) | ||
# error "The standard header <cstdint> is not C++11 compliant. Must #define "\ | ||
"__STDC_LIMIT_MACROS before #including llvm-c/DataTypes.h" | ||
#endif | ||
|
||
#if !defined(UINT32_C) | ||
# error "The standard header <cstdint> is not C++11 compliant. Must #define "\ | ||
"__STDC_CONSTANT_MACROS before #including llvm-c/DataTypes.h" | ||
#endif | ||
|
||
/* Note that <inttypes.h> includes <stdint.h>, if this is a C99 system. */ | ||
#include <sys/types.h> | ||
|
||
#ifdef _AIX | ||
// GCC is strict about defining large constants: they must have LL modifier. | ||
#undef INT64_MAX | ||
#undef INT64_MIN | ||
#endif | ||
|
||
#else /* _MSC_VER */ | ||
#ifdef __cplusplus | ||
#include <cstddef> | ||
#include <cstdlib> | ||
#else | ||
#include <stddef.h> | ||
#include <stdlib.h> | ||
#endif | ||
#include <sys/types.h> | ||
|
||
#if defined(_WIN64) | ||
typedef signed __int64 ssize_t; | ||
#else | ||
typedef signed int ssize_t; | ||
#endif /* _WIN64 */ | ||
|
||
#endif /* _MSC_VER */ | ||
|
||
/* Set defaults for constants which we cannot find. */ | ||
#if !defined(INT64_MAX) | ||
# define INT64_MAX 9223372036854775807LL | ||
#endif | ||
#if !defined(INT64_MIN) | ||
# define INT64_MIN ((-INT64_MAX)-1) | ||
#endif | ||
#if !defined(UINT64_MAX) | ||
# define UINT64_MAX 0xffffffffffffffffULL | ||
#endif | ||
|
||
#endif /* LLVM_C_DATATYPES_H */ |
Oops, something went wrong.