Skip to content

Commit

Permalink
Add -fPIC and rm OBJECT (facebookincubator#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
rui-mo authored and zhejiangxiaomai committed Aug 9, 2022
1 parent 74f2dfd commit 872cc07
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ message("Setting CMAKE_CXX_FLAGS=${SCRIPT_CXX_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${SCRIPT_CXX_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D USE_VELOX_COMMON_BASE")

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D HAS_UNCAUGHT_EXCEPTIONS")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D HAS_UNCAUGHT_EXCEPTIONS -fPIC")

# Under Ninja, we are able to designate certain targets large enough to require
# restricted parallelism.
Expand Down
2 changes: 1 addition & 1 deletion velox/connectors/hive/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

add_library(velox_hive_connector OBJECT HiveConnector.cpp FileHandle.cpp)
add_library(velox_hive_connector HiveConnector.cpp FileHandle.cpp)

target_link_libraries(velox_hive_connector velox_connector
velox_dwio_dwrf_reader velox_dwio_dwrf_writer velox_file)
Expand Down
2 changes: 1 addition & 1 deletion velox/functions/prestosql/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ add_subdirectory(hyperloglog)
add_subdirectory(types)

add_library(
velox_functions_prestosql_impl OBJECT
velox_functions_prestosql_impl
ArrayConstructor.cpp
ArrayContains.cpp
ArrayDistinct.cpp
Expand Down
2 changes: 1 addition & 1 deletion velox/functions/prestosql/aggregates/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if(${VELOX_BUILD_TESTING})
endif()

add_library(
velox_aggregates OBJECT
velox_aggregates
AggregateNames.h
ApproxDistinctAggregate.cpp
ApproxMostFrequentAggregate.cpp
Expand Down

0 comments on commit 872cc07

Please sign in to comment.