-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
zhoujingya
committed
Sep 20, 2024
1 parent
369040e
commit 0e4bad0
Showing
4 changed files
with
6 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
|
||
set(CXX_STANDARD c++17) | ||
set(CMAKE_CXX_FLAGS "-fno-common") | ||
set(CMAKE_CXX_FLAGS " ${CMAKE_CXX_FLAGS} -fno-common") | ||
|
||
add_executable(smallcc smallcc-main.cpp) | ||
|
||
target_link_libraries(smallcc PRIVATE LLVMSupport) | ||
# NOTE: it's bery important to disable | ||
target_link_libraries(smallcc PRIVATE LLVMCore LLVMSupport) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
add_executable(commandline commandline.cpp) | ||
|
||
target_link_libraries(commandline LLVMCore LLVMSupport) | ||
target_link_libraries(commandline PRIVATE LLVMCore LLVMSupport) |