Skip to content

Commit

Permalink
fix folly dep on caladan
Browse files Browse the repository at this point in the history
  • Loading branch information
saubhik committed May 4, 2022
1 parent 9f16999 commit 5697312
Show file tree
Hide file tree
Showing 17 changed files with 25 additions and 19 deletions.
6 changes: 6 additions & 0 deletions CMake/folly-deps.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,12 @@ find_package(Libsodium)
list(APPEND FOLLY_LINK_LIBRARIES ${LIBSODIUM_LIBRARIES})
list(APPEND FOLLY_INCLUDE_DIRECTORIES ${LIBSODIUM_INCLUDE_DIRS})

# link shenango libraries
list(APPEND FOLLY_LINK_LIBRARIES librt++.a)
list(APPEND FOLLY_LINK_LIBRARIES libruntime.a)
list(APPEND FOLLY_LINK_LIBRARIES libnet.a)
list(APPEND FOLLY_LINK_LIBRARIES libbase.a)

# message(STATUS "FOLLY_LINK_LIBRARIES: ${FOLLY_LINK_LIBRARIES}")
# message(STATUS "FOLLY_INCLUDE_DIRECTORIES: ${FOLLY_INCLUDE_DIRECTORIES}")

Expand Down
2 changes: 1 addition & 1 deletion folly/io/async/AsyncUDPSocket.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "net.h"
#include <caladan/net.h>

#include <boost/preprocessor/control/if.hpp>

Expand Down
2 changes: 1 addition & 1 deletion folly/io/async/AsyncUDPSocket.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "net.h"
#include <caladan/net.h>

#include <folly/Function.h>
#include <folly/SocketAddress.h>
Expand Down
2 changes: 1 addition & 1 deletion folly/io/async/EventBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <iostream>
#include <memory>

#include "sync.h"
#include <caladan/sync.h>

#include <folly/ExceptionString.h>
#include <folly/Memory.h>
Expand Down
4 changes: 2 additions & 2 deletions folly/io/async/EventBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
#include <boost/intrusive/list.hpp>
#include <glog/logging.h>

#include "thread.h"
#include "sh_event.h"
#include <caladan/thread.h>
#include <caladan/sh_event.h>

#include <folly/Executor.h>
#include <folly/Function.h>
Expand Down
2 changes: 1 addition & 1 deletion folly/io/async/EventBaseBackendBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#include <memory>

#include "net.h"
#include <caladan/net.h>

#include <folly/io/async/EventUtil.h>
#include <folly/net/NetOps.h>
Expand Down
2 changes: 1 addition & 1 deletion folly/io/async/ScopedEventBaseThread.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#include <memory>

#include "thread.h"
#include <caladan/thread.h>

#include <folly/io/async/EventBase.h>
#include <folly/synchronization/Baton.h>
Expand Down
2 changes: 1 addition & 1 deletion folly/io/async/ShenangoEventBaseBackendBase.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "sh_event.h"
#include <caladan/sh_event.h>

#include <folly/io/async/EventBaseBackendBase.h>

Expand Down
2 changes: 1 addition & 1 deletion folly/io/async/ShenangoEventHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ extern "C" {
#include "runtime/poll.h"
}

#include "net.h"
#include <caladan/net.h>

#include <cassert>

Expand Down
2 changes: 1 addition & 1 deletion folly/io/async/test/AsyncUDPSocketTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ extern "C" {
#include <base/log.h>
}

#include "runtime.h"
#include <caladan/runtime.h>

#include <folly/Conv.h>
#include <folly/SocketAddress.h>
Expand Down
4 changes: 2 additions & 2 deletions folly/io/async/test/EventBaseTestLib.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
#include <memory>
#include <thread>

#include "runtime.h"
#include "thread.h"
#include <caladan/runtime.h>
#include <caladan/thread.h>

#include <folly/Memory.h>
#include <folly/ScopeGuard.h>
Expand Down
4 changes: 2 additions & 2 deletions folly/io/async/test/ShenangoEventHandlerTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ extern "C" {
#include <base/log.h>
}

#include "net.h"
#include "runtime.h"
#include <caladan/net.h>
#include <caladan/runtime.h>
#include "timer.h"

#include <iostream>
Expand Down
2 changes: 1 addition & 1 deletion folly/net/ShNetOps.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <folly/net/ShNetworkSocket.h>
#include <folly/portability/IOVec.h>

#include "net.h"
#include <caladan/net.h>

namespace folly::shnetops {
int bind(ShNetworkSocket &s, const netaddr *name);
Expand Down
2 changes: 1 addition & 1 deletion folly/net/ShNetworkSocket.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include <ostream>

#include "net.h"
#include <caladan/net.h>

namespace folly {
/**
Expand Down
2 changes: 1 addition & 1 deletion folly/synchronization/detail/Spin.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <folly/portability/Asm.h>
#include <folly/synchronization/WaitOptions.h>

#include "thread.h"
#include <caladan/thread.h>

namespace folly {
namespace detail {
Expand Down
2 changes: 1 addition & 1 deletion folly/system/ThreadName.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#include <string>

#include "thread.h"
#include <caladan/thread.h>

#include <folly/Optional.h>
#include <folly/Range.h>
Expand Down
2 changes: 1 addition & 1 deletion folly/test/common/TestMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#include <glog/logging.h>

#include "runtime.h"
#include <caladan/runtime.h>

#include <folly/Portability.h>
#include <folly/init/Init.h>
Expand Down

0 comments on commit 5697312

Please sign in to comment.