Skip to content

Commit fc5b951

Browse files
committed
Remove support for buildling HPHPc
To get the non-hphpc portions of buliding for HPHPc, perform an HHVM build and execute it with the --hphp flag To checkout the commit immediately prior to this: git checkout use-hphpc
1 parent 9cb2d7a commit fc5b951

File tree

11 files changed

+14
-1183
lines changed

11 files changed

+14
-1183
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ if ("$ENV{USE_HHVM}" STREQUAL "1")
3030
message("Building for HHVM")
3131
endif()
3232
if ("$ENV{USE_HPHPC}" STREQUAL "1")
33-
message("Building for HPHPc")
33+
message(FATAL_ERROR "Building HPHPc is no longer supported")
3434
endif()

hphp/CMakeLists.txt

Lines changed: 10 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,10 @@
1717

1818
include(HPHPSetup)
1919

20-
if ("$ENV{USE_HHVM}" STREQUAL "1")
21-
# HHVM Build
22-
SET(USE_HHVM TRUE)
23-
SET(ENV{HHVM} 1)
24-
ADD_DEFINITIONS("-DHHVM -DHHVM_BINARY=1 -DHHVM_PATH=\\\"${HPHP_HOME}/hphp/hhvm/hhvm\\\"")
25-
26-
if ("$ENV{USE_HPHPC}" STREQUAL "1")
27-
message(FATAL_ERROR "Both USE_HHVM and USE_HPHPC are set, you may only select one")
28-
endif()
29-
else()
30-
# HPHPc Build
31-
SET(USE_HHVM FALSE)
32-
ADD_DEFINITIONS("-DHHVM_PATH=\"\"")
33-
34-
if (NOT "$ENV{USE_HPHPC}" STREQUAL "1")
35-
message(FATAL_ERROR "You must select which version of HipHop to build by setting either USE_HHVM=1 or USE_HPHPC=1 in your environment")
36-
endif()
37-
endif()
20+
# HHVM Build
21+
SET(USE_HHVM TRUE)
22+
SET(ENV{HHVM} 1)
23+
ADD_DEFINITIONS("-DHHVM -DHHVM_BINARY=1 -DHHVM_PATH=\\\"${HPHP_HOME}/hphp/hhvm/hhvm\\\"")
3824

3925
set(RECURSIVE_SOURCE_SUBDIRS runtime/base runtime/eval runtime/ext runtime/vm system/gen system/lib util)
4026
foreach (dir ${RECURSIVE_SOURCE_SUBDIRS})
@@ -70,13 +56,11 @@ foreach (file ${CXX_SOURCES})
7056
endforeach(file ${CXX_SOURCES})
7157

7258
# remove ext/sep for hhvm
73-
if (USE_HHVM)
74-
foreach (file ${CXX_SOURCES})
75-
if (${file} MATCHES "ext/sep")
76-
list(REMOVE_ITEM CXX_SOURCES ${file})
77-
endif()
78-
endforeach(file ${CXX_SOURCES})
79-
endif(USE_HHVM)
59+
foreach (file ${CXX_SOURCES})
60+
if (${file} MATCHES "ext/sep")
61+
list(REMOVE_ITEM CXX_SOURCES ${file})
62+
endif()
63+
endforeach(file ${CXX_SOURCES})
8064

8165

8266
if (EXISTS "${hphp_SOURCE_DIR}/HPHP_EXCLUDE_FILES.txt")
@@ -184,11 +168,7 @@ SET(CMAKE_CXX_ARCHIVE_APPEND "<CMAKE_AR> q <TARGET> <LINK_FLAGS> <OBJECTS>")
184168
hphp_link(hphp_runtime_static)
185169

186170
add_subdirectory(compiler)
187-
188-
if (USE_HHVM)
189-
add_subdirectory(runtime/ext_hhvm)
190-
endif()
191-
171+
add_subdirectory(runtime/ext_hhvm)
192172
add_subdirectory(hhvm)
193173

194174
if (NOT "$ENV{HPHP_NOTEST}" STREQUAL "1")

hphp/dirs.mk

Lines changed: 0 additions & 229 deletions
This file was deleted.

hphp/hhvm/CMakeLists.txt

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
1-
2-
if (USE_HHVM)
3-
set(HIPHOP_TARGET hhvm)
4-
else()
5-
set(HIPHOP_TARGET hphp)
6-
endif()
7-
81
set(CXX_SOURCES)
92
auto_sources(files "*.cpp" "")
103
list(APPEND CXX_SOURCES ${files})
114

12-
add_executable(${HIPHOP_TARGET} ${CXX_SOURCES})
13-
target_link_libraries(${HIPHOP_TARGET} hphp_analysis hphp_runtime_static)
14-
15-
if (USE_HHVM)
16-
target_link_libraries(hhvm ext_hhvm_static)
17-
endif()
5+
add_executable(hhvm ${CXX_SOURCES})
6+
target_link_libraries(hhvm hphp_analysis hphp_runtime_static ext_hhvm_static)

hphp/hphp

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)