diff --git a/compile_flags.txt b/compile_flags.txt new file mode 100644 index 000000000000..ea299502ef0e --- /dev/null +++ b/compile_flags.txt @@ -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 diff --git a/src/workerd/io/worker.c++ b/src/workerd/io/worker.c++ index 62f9e5f01dc2..7b386de2d46b 100644 --- a/src/workerd/io/worker.c++ +++ b/src/workerd/io/worker.c++ @@ -3,6 +3,7 @@ // https://opensource.org/licenses/Apache-2.0 #include +#include #include #include #include "actor-cache.h" diff --git a/src/workerd/jsg/function.h b/src/workerd/jsg/function.h index f0ef5c0c81de..3a2ba4902aec 100644 --- a/src/workerd/jsg/function.h +++ b/src/workerd/jsg/function.h @@ -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 +#include "resource.h" // for ArgumentIndexes +#include "wrappable.h" namespace workerd::jsg { diff --git a/src/workerd/jsg/iterator.h b/src/workerd/jsg/iterator.h index caf419df6286..1ccdbb025e0b 100644 --- a/src/workerd/jsg/iterator.h +++ b/src/workerd/jsg/iterator.h @@ -5,6 +5,7 @@ #pragma once #include "jsg.h" +#include "struct.h" #include #include diff --git a/src/workerd/jsg/promise.h b/src/workerd/jsg/promise.h index 12eecc62a326..003ce1afa0be 100644 --- a/src/workerd/jsg/promise.h +++ b/src/workerd/jsg/promise.h @@ -4,11 +4,10 @@ #pragma once +#include +#include "jsg.h" #include "util.h" #include "wrappable.h" -#include "jsg.h" -#include "web-idl.h" -#include namespace workerd::jsg { diff --git a/src/workerd/jsg/resource.h b/src/workerd/jsg/resource.h index 880ea6b95813..5e5a93c60638 100644 --- a/src/workerd/jsg/resource.h +++ b/src/workerd/jsg/resource.h @@ -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 #include #include #include +#include "util.h" +#include "wrappable.h" +#include "jsg.h" #include namespace std { diff --git a/src/workerd/jsg/rtti.h b/src/workerd/jsg/rtti.h index 4fd822615727..88e005b900c8 100644 --- a/src/workerd/jsg/rtti.h +++ b/src/workerd/jsg/rtti.h @@ -9,9 +9,10 @@ // Can be used to generate typescript type, dynamically invoke methods, fuzz, check backward // compatibility etc. +#include +#include #include #include -#include namespace workerd::jsg::rtti { diff --git a/src/workerd/jsg/value.h b/src/workerd/jsg/value.h index 90763831de94..13412a41e2e9 100644 --- a/src/workerd/jsg/value.h +++ b/src/workerd/jsg/value.h @@ -10,7 +10,6 @@ #include "util.h" #include "wrappable.h" -#include "jsg.h" #include "web-idl.h" #include #include diff --git a/src/workerd/jsg/web-idl.h b/src/workerd/jsg/web-idl.h index 537f989567e3..28fa0463a5f0 100644 --- a/src/workerd/jsg/web-idl.h +++ b/src/workerd/jsg/web-idl.h @@ -15,7 +15,7 @@ namespace workerd::jsg { class UsvString; class UsvStringPtr; -} // namespace workerd::cjfs +} // namespace workerd::jsg namespace workerd::jsg::webidl {