Skip to content

Commit

Permalink
First pass addition of compile_flags.txt
Browse files Browse the repository at this point in the history
A step towards retiring the problematic compile_commands.json.

WIP: part macOS, part Linux, no part Windows.

Bug: #506
  • Loading branch information
ohodson committed Jun 21, 2023
1 parent 3c15df5 commit 84b1b0a
Show file tree
Hide file tree
Showing 9 changed files with 75 additions and 11 deletions.
63 changes: 63 additions & 0 deletions compile_flags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
-std=c++20
-stdlib=libc++
-xc++
-D_FORTIFY_SOURCE=1
-DBAZEL_CURRENT_REPOSITORY=\"\"
-DCAPNP_VERSION=11000
-DDEBUG
-DGOOGLE3
-DHAVE_DLOPEN=0
-DKJ_HAS_LIBDL
-DKJ_HAS_OPENSSL
-DKJ_HAS_ZLIB
-DKJ_SAVE_ACQUIRED_LOCK_INFO=0
-DKJ_TRACK_LOCK_BLOCKING=0
-DSQLITE_ENABLE_FTS5
-DSQLITE_ENABLE_NORMALIZE
-DSQLITE_MAX_ALLOCATION_SIZE=16777216
-DSQLITE_PRINTF_PRECISION_LIMIT=100000
-DUCONFIG_ONLY_HTML_CONVERSION=1
-DUNISTR_FROM_CHAR_EXPLICIT=
-DUNISTR_FROM_STRING_EXPLICIT=
-DUSE_CHROMIUM_ICU=1
-DU_CHARSET_IS_UTF8=1
-DU_COMMON_IMPLEMENTATION
-DU_ENABLE_DYLOAD=0
-DU_ENABLE_RESOURCE_TRACING=0
-DU_ENABLE_TRACING=1
-DU_I18N_IMPLEMENTATION
-DU_ICUDATAENTRY_IN_COMMON
-DU_USING_ICU_NAMESPACE=0
-DV8_31BIT_SMIS_ON_64BIT_ARCH
-DV8_ADVANCED_BIGINT_ALGORITHMS
-DV8_COMPRESS_POINTERS
-DV8_COMPRESS_POINTERS_IN_SHARED_CAGE
-DV8_CONCURRENT_MARKING
-DV8_DEPRECATION_WARNINGS
-DV8_ENABLE_CHECKS
-DV8_ENABLE_LAZY_SOURCE_POSITIONS
-DV8_ENABLE_TURBOFAN
-DV8_ENABLE_WEBASSEMBLY
-DV8_HAVE_TARGET_OS
-DV8_IMMINENT_DEPRECATION_WARNINGS
-DV8_SHORT_BUILTIN_CALLS
-DV8_TARGET_ARCH_X64
-DV8_TARGET_OS_LINUX
-DV8_TYPED_ARRAY_MAX_SIZE_IN_HEAP=64
-DWORKERD_ICU_DATA_EMBED
-stdlib=libc++
-Iexternal/capnp-cpp/src
-isystembazel-bin/src
-Isrc
-Ibazel-bin/external/capnp-cpp/src
-Iexternal/brotli/c/include
-Ibazel-bin/external/v8/icu
-Iexternal/v8/include
-Iexternal/v8
-Iexternal/ssl/src/include
-Iexternal/zlib
-Iexternal/icu
-Iexternal/com_googlesource_chromium_icu/source/common
-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1
-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include
-Ibazel-bin
1 change: 1 addition & 0 deletions src/workerd/io/worker.c++
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// https://opensource.org/licenses/Apache-2.0

#include <cstdint>
#include <kj/string.h>
#include <workerd/io/worker.h>
#include <workerd/io/promise-wrapper.h>
#include "actor-cache.h"
Expand Down
4 changes: 2 additions & 2 deletions src/workerd/jsg/function.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
//
// Handles wrapping a C++ function so that it can be called from JavaScript, and vice versa.

#include "wrappable.h"
#include "resource.h" // for ArgumentIndexes
#include <kj/function.h>
#include "resource.h" // for ArgumentIndexes
#include "wrappable.h"

namespace workerd::jsg {

Expand Down
1 change: 1 addition & 0 deletions src/workerd/jsg/iterator.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#pragma once

#include "jsg.h"
#include "struct.h"
#include <concepts>
#include <deque>

Expand Down
5 changes: 2 additions & 3 deletions src/workerd/jsg/promise.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@

#pragma once

#include <kj/async.h>
#include "jsg.h"
#include "util.h"
#include "wrappable.h"
#include "jsg.h"
#include "web-idl.h"
#include <kj/async.h>

namespace workerd::jsg {

Expand Down
6 changes: 3 additions & 3 deletions src/workerd/jsg/resource.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
// can call back to the class's methods. This differs from, say, a struct type, which will be deeply
// converted into a JS object when passed into JS.

#include "util.h"
#include "wrappable.h"
#include "jsg.h"
#include <kj/tuple.h>
#include <kj/debug.h>
#include <type_traits>
#include <kj/map.h>
#include "util.h"
#include "wrappable.h"
#include "jsg.h"
#include <typeindex>

namespace std {
Expand Down
3 changes: 2 additions & 1 deletion src/workerd/jsg/rtti.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@
// Can be used to generate typescript type, dynamically invoke methods, fuzz, check backward
// compatibility etc.

#include <kj/map.h>
#include <capnp/message.h>
#include <workerd/jsg/jsg.h>
#include <workerd/jsg/rtti.capnp.h>
#include <kj/map.h>

namespace workerd::jsg::rtti {

Expand Down
1 change: 0 additions & 1 deletion src/workerd/jsg/value.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

#include "util.h"
#include "wrappable.h"
#include "jsg.h"
#include "web-idl.h"
#include <kj/time.h>
#include <kj/debug.h>
Expand Down
2 changes: 1 addition & 1 deletion src/workerd/jsg/web-idl.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
namespace workerd::jsg {
class UsvString;
class UsvStringPtr;
} // namespace workerd::cjfs
} // namespace workerd::jsg

namespace workerd::jsg::webidl {

Expand Down

0 comments on commit 84b1b0a

Please sign in to comment.