Skip to content

Commit

Permalink
(Issue #62) Correct basics.d test build instructions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Syniurge committed Jan 21, 2018
1 parent 59c1196 commit c1cbe1b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,9 @@ covered in https://github.com/Syniurge/Calypso/issues/49

## Specific flags and building the basic example

Calypso adds the -cpp-flags option to LDC to pass arguments to Clang during header parsing, e.g to enable C++11 while building [tests/calypso/basic/basics.d](tests/calypso/basic/basics.d):
Calypso adds the -cpp-flags option to LDC to pass arguments to Clang during header parsing, e.g to enable C++11:

$ clang++ -std=c++11 -c basics.cpp -o basics.cpp.o
$ ldc2 -cpp-args -std=c++11 basics.cpp.o -L-lstdc++ basics.d
$ ldc2 -cpp-args -std=c++11 main.d

## missing features
* Register the destructor of C++ classes and structs while allocating a C++ class through the GC (as is being done for D structs)
Expand Down
3 changes: 1 addition & 2 deletions tests/calypso/basics.d
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
* Basic tests for Calypso.
*
* Build with:
* $ clang++ -std=c++11 -c basics.cpp -o basics.cpp.o
* $ ldc2 -cpp-args -std=c++11 basics.cpp.o -L-lstdc++ basics.d
* $ ldc2 -cpp-args -std=c++11 basics.d
*/

modmap (C++) "basics.hpp";
Expand Down

0 comments on commit c1cbe1b

Please sign in to comment.